h1:focus {
    outline: none;
}

/* Center Radzen notifications at top */
.rz-notification-container {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

@media (max-width: 767.98px) {
    .rz-notification-container {
        width: 92%;
        max-width: 400px;
    }

    .rz-notification-message {
        width: 100% !important;
    }
}

/* Payment Entry dialog — full-screen on mobile (scoped via WrapperCssClass) */
@media (max-width: 767.98px) {
    .pe-dialog-wrapper {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    .pe-dialog-wrapper .rz-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        display: flex;
        flex-direction: column;
    }

    .pe-dialog-wrapper .rz-dialog-content {
        flex: 1 1 auto;
        overflow-y: auto;
    }
}

.rz-switch.rz-switch-checked .rz-switch-circle {
    background-color: #17a217 !important;
}

#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+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhb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OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

/* Hide spinner arrows on all number inputs globally */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Dashboard Tiles */
.dashboard-tiles-row {
    margin-top: 1rem;
}

.dashboard-tile {
    background: #fff;
    border-radius: 8px;
    padding: 0.875rem 1.125rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-clr);
    height: 100%;
}

.dashboard-tile-label {
    font-size: 0.75rem;
    color: var(--label-clr);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-tile-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-clr);
    margin: 0;
}

/* ── Global print rules ────────────────────────────────────── */
@media print {
    /*
     * Strategy: use visibility:hidden on body to hide all chrome,
     * then selectively reveal the receipt and its full ancestor chain
     * so that heights are preserved and content flows across multiple pages.
     *
     * We do NOT use "body * { height: 0 }" because that collapses
     * ancestor containers (.page-body, .page-wrapper, #app) which clip
     * the receipt's overflow and prevent multi-page output.
     */

    /* Hide everything by default */
    body {
        visibility: hidden;
    }

    /* Reveal the receipt and all its descendants */
    #por-receipt-printable,
    #por-receipt-printable * {
        visibility: visible !important;
    }

    /* Restore the receipt element to full natural height — no clipping.
       position: static keeps it in normal document flow so it anchors to
       the document top rather than a scrolled positioned ancestor. */
    #por-receipt-printable {
        position: static !important;
        width: 100%;
        height: auto !important;
        overflow: visible !important;
        background: #fff;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Remove overflow clipping and height constraints on ALL ancestor
       containers so the receipt can expand across all print pages.
       Also reset position so no ancestor creates a new positioning context
       that could offset the receipt. */
    body,
    #app,
    .page-wrapper,
    .page-body,
    .por-wrapper {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        position: static !important;
    }

    /* Hide navbar (redundant but explicit) */
    .app-navbar {
        display: none !important;
    }

    @page {
        margin: 10mm;
        size: A4;
    }
}

.blazor-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100dvh;
    background: #F5F7FA;
}

.blazor-card {
    background: #FFFFFF;
    max-width: 380px;
    width: 100%;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(51, 118, 180, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.blazor-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.rz-context-menu .rz-menu:not(.rz-profile-menu) .rz-navigation-item-wrapper:hover,
.rz-context-menu .rz-menu:not(.rz-profile-menu) .rz-navigation-item-wrapper:hover .rz-navigation-item-link {
    background-color: #C0C0C0 !important;
    color:#000000 !important;
}