﻿#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;
    }

:root {
    font-size: var(--rz-root-font-size);
}

body {
    font-family: var(--rz-text-font-family);
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--rz-body-background-color);
}

.rz-body {
    --rz-body-padding: 0;
}

a {
    color: var(--rz-link-color);
}

    a:hover,
    a:focus {
        color: var(--rz-link-hover-color);
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNj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: 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");
    }
.permission-form-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    font-size: .85rem;
    color: #374151;
    border-radius: 6px;
    z-index: 20;
}
.toolbar-btn {
    padding: 0.4rem 1rem;
    font-weight: 500;
    border-radius: 6px;
}

    .toolbar-btn .rz-icon {
        font-size: 18px;
    }

/* Header bar */
.header-bar {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.header-icon {
    font-size: 1.75rem; /* bigger key icon */
}


/* Legend card */
.legend-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Permission tags */
.perm-tag {
    padding: 0.15rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

    .perm-tag.granted {
        background: #e6f8ec;
        border-color: #c6ebd3;
        color: #157347;
    }

    .perm-tag.denied {
        background: #fde8e8;
        border-color: #f5c2c2;
        color: #b02a37;
    }

    .perm-tag.partial {
        background: #fff4e0;
        border-color: #ffdfb3;
        color: #ad6800;
    }

.bg-ahpc-gradient {
    background: linear-gradient(135deg, #347736 0%, #3d8c40 100%);
}
:root {
    --ahpc-green-start: #28a745;
    --ahpc-green-end: #20c997;
    --ahpc-green-alt: #22c082;
}

/* Header + Sidebar Gradient */
.bg-ahpc-gradient {
    background: linear-gradient( 90deg, var(--ahpc-green-start), var(--ahpc-green-end) );
    color: #fff;
}

/* Slight variation (profile menu etc.) */
.bg-ahpc-gradient-soft {
    background: linear-gradient( 90deg, var(--ahpc-green-alt), var(--ahpc-green-end) );
    color: #fff;
}

/* Sidebar text */
.ahpc-text-light {
    color: rgba(255, 255, 255, 0.85);
}

/* Remove Radzen background where needed */
.rz-transparent {
    background: transparent !important;
}
/* Responsive Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Hover cards */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 0.75rem;
}

    .hover-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    }

/* Buttons */
.toolbar-btn {
    font-weight: 500;
}

.legend-inline {
    overflow-x: auto; /* enables sideways scroll on small screens */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px; /* keeps scrollbar off the text */
    scrollbar-width: thin;
}

/* Each chip stays together on one line */
.legend-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap; /* prevents wrapping inside a chip */
}
/* Keep hover effect */
.hover-card:hover {
    box-shadow: 0 4px 16px -4px rgba(20,33,61,.10);
    border-color: #d5dde5;
}

/* Tree compact styles */
.tree-compact .rz-treenode-content {
    padding: 0.15rem 0.25rem;
}

.tree-compact .rz-treenode-label {
    font-size: 0.875rem;
    line-height: 1.1;
    white-space: pre-line;
}

.tree-compact .rz-tree {
    --rz-tree-indent: 0.9rem;
}
.no-uppercase {
    text-transform: none !important;
}



/* Mobile tweaks: slightly tighter tree and assured stacking */
@media (max-width: 767.98px) {
    .tree-compact .rz-tree {
        --rz-tree-indent: 0.7rem;
    }

    .tree-compact .rz-treenode-content {
        padding: 0.1rem 0.25rem;
    }
}

/* Optional: a taller tree on md+ screens */
@media (min-width: 768px) {
    .tree-compact {
        min-height: 420px;
    }
}
@media (min-width: 768px) {
    .programs-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
    /* md => 3/12 */
    .tree-col {
        flex: 0 0 75%;
        max-width: 75%;
    }
    /* md => 9/12 */
}

@media (min-width: 1200px) {
    .programs-col {
        flex: 0 0 16.6667%;
        max-width: 16.6667%;
    }
    /* xl => 2/12 */
    .tree-col {
        flex: 0 0 83.3333%;
        max-width: 83.3333%;
    }
    /* xl => 10/12 */
}
@keyframes pulse {
    0% {
        opacity: .55;
        transform: scale(.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: .55;
        transform: scale(.95);
    }
}

@media (max-width: 767.98px) {

    /* Hide step labels */
    .ahpc-steps .rz-steps-item-label {
        display: none;
    }

    /* Make steps scroll-safe */
    .ahpc-steps .rz-steps {
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Center step dots */
    .ahpc-steps .rz-steps-item {
        min-width: 44px;
        justify-content: center;
    }
}
.professional-timeline {
    --timeline-bg: #ffffff;
    padding-right: 0.5rem;
}

.timeline-date {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rz-primary);
}

.timeline-card {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    border-left: 4px solid var(--rz-primary);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.step-title {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    gap: 6px;
    align-items: center;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-success {
    background: #e6f4ea;
    color: #1e7e34;
}

.status-danger {
    background: #fdecea;
    color: #b02a37;
}

.status-warning {
    background: #fff4e5;
    color: #8a6d3b;
}

.status-yellow {
    background: #fff4e5;
    color: yellow;
}

.status-neutral {
    background: #f1f3f5;
    color: #495057;
}

.timeline-body {
    font-size: 0.9rem;
}
timeline-wrapper {
    max-height: 200px !important; /* adjust as needed */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Optional: smoother scrolling */
.timeline-wrapper {
    scrollbar-width: thin; /* Firefox */
}



.meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
    color: #495057;
}
.login-wrapper {
    width: 100%;
    padding: 0;
}

/* Tablet / Laptop */
@media (min-width: 768px) {
    .login-wrapper {
        max-width: 1100px;
        padding: 0 16px;
    }
}
.desk-tile {
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
}

.desk-received {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.desk-forwarded {
    background: linear-gradient(135deg, #10b981, #059669);
}

.desk-remaining {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.desk-hold {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.desk-tile .rz-icon {
    opacity: 0.9;
}

/* Invoice print styles */
.invoice-header {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.invoice-container {
    padding: 20px;
    background: #fff;
    color: #111;
}

.invoice-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.invoice-section-title {
    margin-top: 16px;
    font-weight: 600;
    color: #333;
}

.invoice-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 8px;
}

    .invoice-table th,
    .invoice-table td {
        border: 1px solid #e5e5e5;
        padding: 8px 10px;
        text-align: left;
    }

    .invoice-table thead th {
        background: #f7f7f7;
        font-weight: 700;
    }

.total-box {
    margin-top: 14px;
    font-weight: 700;
    text-align: right;
    font-size: 16px;
}

.criteria-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-weight: 600;
}

/* Hide elements with the no-print class in print mode */
@media print {
    .no-print {
        display: none !important;
    }
    /* Make body background white */
    body {
        background: #fff !important;
    }
    /* Keep page size A4 */
    @page {
        size: A4;
        margin: 18mm;
    }
    /* Avoid printing page headers/footers inserted by browsers if required by user settings */
    /* Avoid breaking the invoice area across pages if small; allow if large */
    .invoice-container {
        page-break-inside: avoid;
    }
}
.pdf-page {
    /* hint for manual page separation */
    page-break-after: always;
    break-after: page;
    break-inside: avoid;
    -webkit-print-color-adjust: exact;
}

    /* Avoid breaking an element inside its children */
    .pdf-page * {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        -webkit-region-break-inside: avoid;
    }