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;
}
/* ---------- report action row (Run / Excel / Print) ---------- */
.rep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.rep-actions .flex-grow-1 { flex-grow: 1; }

/* ---------- printing reports — professional letterhead ---------- */
.print-only { display: none; }

@page { size: A4; margin: 14mm 12mm 16mm 12mm; }

@media print {
    html, body { background: #fff !important; }
    body * { visibility: hidden; }
    #print-area, #print-area * { visibility: visible; }
    #print-area { position: absolute; top: 0; left: 0; width: 100%; }
    #print-area, #print-area * { color: #111 !important; background: #fff !important; box-shadow: none !important; }

    /* letterhead banner */
    .print-only { display: block !important; visibility: visible !important;
        border-bottom: 2.5px solid #0e7490; padding-bottom: 8px; margin-bottom: 16px; }
    .print-only h2 { font-size: 18px; color: #0e7490 !important; letter-spacing: .4px; font-weight: 800; }
    .print-only div { font-size: 11px; color: #555 !important; margin-top: 3px; }

    /* totals cards → clean bordered boxes */
    #print-area .mud-paper { border: 1px solid #cbd5e1 !important; border-radius: 6px !important; }

    /* tables — repeat header on each page, avoid row splits */
    #print-area table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
    #print-area thead { display: table-header-group; }
    #print-area th { border-bottom: 1.6px solid #0e7490 !important; text-align: left;
        padding: 5px 6px !important; font-weight: 700; }
    #print-area td { border-bottom: 1px solid #e2e8f0 !important; padding: 4px 6px !important; }
    #print-area tr, #print-area .mud-paper { break-inside: avoid; }

    /* keep the horizontal bar chart legible on paper */
    #print-area .rep-bar-track { background: #e2e8f0 !important; }
    #print-area .rep-bar-fill { background: #0e7490 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-only, #print-area .print-only h2 { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    /* hide interactive chrome */
    #print-area .mud-icon-button, #print-area .no-print,
    .actionbar, .rep-actions, .mud-table-pager, .mud-table-toolbar { display: none !important; }
}

/* ============================================================================
   Modern split-screen sign-in
   ============================================================================ */
.auth { position: fixed; inset: 0; z-index: 20; display: flex; overflow: auto;
    background: #0a1120; color: #e6edf6; font-family: 'Inter','Segoe UI',sans-serif; }

/* ---- left: brand hero ---- */
.auth-hero { position: relative; flex: 1.05; display: none; flex-direction: column; justify-content: space-between;
    padding: 52px 56px; overflow: hidden;
    background:
        radial-gradient(1100px 680px at 16% 6%, rgba(34,211,238,.22), transparent 60%),
        radial-gradient(920px 700px at 96% 100%, rgba(124,58,237,.30), transparent 55%),
        linear-gradient(140deg, #06323f 0%, #0a1120 66%); }
.auth-hero::after { content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 28% 26%, #000, transparent 72%);
            mask-image: radial-gradient(circle at 28% 26%, #000, transparent 72%); }
.auth-hero-in { position: relative; z-index: 1; max-width: 440px; }
.auth-eyebrow { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #67e8f9; font-weight: 700; }
.auth-hero h1 { font-size: 42px; line-height: 1.08; font-weight: 800; letter-spacing: .4px; margin: 16px 0 12px; }
.auth-hero .lead { font-size: 16px; line-height: 1.65; color: #b6c2d4; margin: 0 0 32px; }
.auth-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
.auth-feats li { display: flex; align-items: center; gap: 13px; font-size: 14.5px; color: #dbe4f0; }
.auth-feats .fic { width: 36px; height: 36px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center;
    background: rgba(34,211,238,.14); color: #67e8f9; border: 1px solid rgba(34,211,238,.22); }
.auth-foot { position: relative; z-index: 1; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 12px; font-weight: 500; letter-spacing: .3px; color: #a7b6ca;
    padding: 8px 15px; border-radius: 999px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11);
    -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
    box-shadow: 0 12px 28px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.06); }
.auth-foot::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
    background: #22d3ee; box-shadow: 0 0 9px #22d3ee; }

/* ---- right: form ---- */
.auth-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 36px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-logo { width: 60px; height: 60px; border-radius: 18px; flex: none; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #22d3ee, #0891b2); color: #04121b; box-shadow: 0 14px 34px rgba(34,211,238,.38); }
.auth-logo .mud-icon-root { font-size: 34px; }
.auth-brandline { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.auth-brandline .n { font-size: 20px; font-weight: 800; letter-spacing: .3px; line-height: 1.1; }
.auth-brandline .s { font-size: 12px; color: #8a97ab; }
.auth-card h2 { font-size: 27px; font-weight: 800; margin: 0 0 6px; }
.auth-card .sub { font-size: 14px; color: #8a97ab; margin: 0 0 28px; }
.auth-btn.mud-button-root { height: 52px; border-radius: 14px; font-size: 15px; font-weight: 700; text-transform: none;
    color: #ffffff; background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 12px 30px rgba(34,197,94,.34); }
.auth-btn.mud-button-root:hover { background: linear-gradient(135deg, #2fd06b, #15903f); box-shadow: 0 14px 34px rgba(34,197,94,.44); }
.auth-hint { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 26px auto 0;
    font-size: 12px; font-weight: 500; letter-spacing: .2px; color: #8ea0b8;
    padding: 8px 16px; border-radius: 999px;
    background: rgba(34,197,94,.09); border: 1px solid rgba(34,197,94,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.auth-hint .mud-icon-root { font-size: 16px; color: #22c55e; }
.theme-light .auth-hint { color: #4b5563; background: rgba(22,163,74,.08); border-color: rgba(22,163,74,.22); }
.theme-light .auth-hint .mud-icon-root { color: #16a34a; }
.auth-card .mud-input.mud-input-outlined .mud-input-outlined-border { border-radius: 13px; }

/* desktop: reveal the hero, hide the small in-card brand */
@media (min-width: 900px) { .auth-hero { display: flex; } .auth-brandline { display: none; } }

/* light theme (ClientWeb only) */
.theme-light .auth { background: #eef2f9; color: #1e293b; }
.theme-light .auth-brandline .s, .theme-light .auth-card .sub { color: #64748b; }
.theme-light .auth-hint { color: #94a3b8; }
