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;
}

/* CODERTI visual system */
:root { --ink:#14213d; --muted:#718096; --line:#e8edf5; --surface:#fff; --canvas:#f5f7fb; --brand:#3157d5; --brand-dark:#203da5; --cyan:#16b8c8; --lime:#8fd14f; --danger:#e45858; --shadow:0 18px 45px rgba(37,55,98,.09); }
html,body { min-height:100%; }
body { margin:0; color:var(--ink); background:var(--canvas); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
a,.btn-link { color:var(--brand); }
h1,h2,h3 { letter-spacing:-.035em; }
h1 { font-size:clamp(1.75rem,2.4vw,2.45rem); font-weight:780; }
.text-secondary,.text-muted { color:var(--muted)!important; }
.content { padding-top:1.6rem; padding-bottom:3rem; max-width:1480px; width:100%; margin:0 auto; }
.page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:1.5rem; }
.eyebrow { color:var(--brand); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.14em; }
.page-subtitle { color:var(--muted); margin:.35rem 0 0; max-width:680px; }
.btn { border-radius:12px; font-weight:700; padding:.68rem 1rem; transition:transform .18s ease,box-shadow .18s ease; }
.btn:hover { transform:translateY(-1px); }
.btn-primary { color:#fff; background:linear-gradient(135deg,var(--brand),var(--brand-dark)); border:0; box-shadow:0 9px 22px rgba(49,87,213,.22); }
.btn-primary:hover { background:linear-gradient(135deg,#3d63df,#2747b8); }
.btn:focus,.form-control:focus,.form-select:focus { box-shadow:0 0 0 .22rem rgba(49,87,213,.14); border-color:#8ea4ed; }
.card { border:1px solid rgba(226,232,240,.8)!important; border-radius:20px; box-shadow:0 10px 28px rgba(37,55,98,.055); background:rgba(255,255,255,.94); }
.card-body { padding:1.35rem; }
.alert { border:0; border-radius:15px; }
.alert-info { color:#2450a4; background:#eaf1ff; }
.table-responsive { background:var(--surface); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); overflow:hidden; }
.table { margin:0; color:var(--ink); }
.table thead th { border:0; background:#f8faff; color:#718096; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; padding:1rem 1.15rem; }
.table tbody td { border-color:#edf1f7; padding:1rem 1.15rem; vertical-align:middle; }
.table tbody tr { transition:background .16s ease; }
.table tbody tr:hover { background:#f9fbff; }
.badge { border-radius:999px; padding:.48rem .7rem; font-weight:700; }
.bg-success { background:#e5f7e8!important; color:#258044!important; }
.form-control,.form-select { min-height:48px; border:1px solid #dfe5ef; border-radius:12px; padding:.7rem .85rem; background:#fbfcfe; }
label { color:#43506a; font-size:.86rem; font-weight:700; margin-bottom:.4rem; }
.hero-panel { position:relative; overflow:hidden; color:#fff; padding:clamp(1.5rem,3vw,2.5rem); border-radius:25px; background:radial-gradient(circle at 88% 12%,rgba(58,213,207,.34),transparent 26%),linear-gradient(125deg,#172b64 0%,#294fc4 58%,#277fbb 100%); box-shadow:0 26px 55px rgba(30,65,155,.22); }
.hero-panel::after { content:""; position:absolute; width:260px; height:260px; right:-85px; bottom:-155px; border:42px solid rgba(255,255,255,.08); border-radius:50%; }
.hero-panel h1 { margin:.35rem 0 .65rem; max-width:720px; }
.hero-panel p { color:rgba(255,255,255,.76); max-width:620px; margin:0; }
.hero-kicker { display:inline-flex; gap:.5rem; align-items:center; font-size:.75rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.hero-kicker::before { content:""; width:8px; height:8px; border-radius:50%; background:#a9ec66; box-shadow:0 0 0 6px rgba(169,236,102,.13); }
.metric-card { height:100%; overflow:hidden; position:relative; }
.metric-card::after { content:""; position:absolute; right:-22px; bottom:-28px; width:80px; height:80px; border-radius:50%; background:var(--metric-color,#3157d5); opacity:.08; }
.metric-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; color:var(--metric-color,#3157d5); background:#eef2ff; font-size:1.15rem; font-weight:800; }
.metric-label { color:var(--muted); font-size:.8rem; font-weight:700; margin-top:1rem; }
.metric-value { font-size:2rem; line-height:1.1; font-weight:800; letter-spacing:-.04em; margin-top:.25rem; }
.quick-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.quick-link { color:inherit; text-decoration:none; padding:1.2rem; border:1px solid var(--line); border-radius:18px; background:#fff; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.quick-link:hover { color:inherit; transform:translateY(-3px); border-color:#c8d4f6; box-shadow:var(--shadow); }
.quick-link strong { display:block; margin-bottom:.25rem; }
.quick-link span { color:var(--muted); font-size:.84rem; }
.login-shell { min-height:calc(100vh - 160px); display:grid; grid-template-columns:1.08fr .92fr; background:#fff; border:1px solid var(--line); border-radius:28px; overflow:hidden; box-shadow:var(--shadow); }
.login-story { position:relative; overflow:hidden; padding:clamp(2rem,5vw,4.5rem); color:#fff; background:radial-gradient(circle at 10% 92%,rgba(22,184,200,.5),transparent 30%),linear-gradient(145deg,#142653,#3157d5); display:flex; flex-direction:column; justify-content:space-between; }
.login-story::after { content:""; position:absolute; width:310px; height:310px; right:-180px; top:-150px; border:55px solid rgba(255,255,255,.08); border-radius:50%; }
.login-story h1 { font-size:clamp(2.2rem,4vw,4rem); max-width:560px; line-height:1.02; }
.login-story p { color:rgba(255,255,255,.72); max-width:500px; font-size:1.05rem; }
.login-feature { display:flex; gap:.75rem; color:rgba(255,255,255,.85); font-weight:600; }
.login-feature::before { content:"✓"; color:#a9ec66; font-weight:900; }
.login-form { padding:clamp(2rem,5vw,4.5rem); display:flex; align-items:center; }
.login-form-inner { width:100%; max-width:420px; margin:auto; }
.brand-mark { display:inline-block; width:min(320px,90%); height:112px; overflow:hidden; color:transparent; font-size:0; border-radius:16px; background:#fff url('/logo.png') no-repeat center/94% auto; box-shadow:0 16px 35px rgba(5,20,55,.24); }
@media(max-width:900px){.quick-grid{grid-template-columns:1fr}.login-shell{grid-template-columns:1fr}.login-story{min-height:330px}}
@media(max-width:640px){.content{padding:1.1rem 1rem 2rem!important}.page-heading{align-items:flex-start;flex-direction:column}.hero-panel{border-radius:20px}}

/* Metrics emitted by the shared component */
.row.g-3 > .col-6 .card { height:100%; overflow:hidden; position:relative; }
.row.g-3 > .col-6 .card::before { content:""; display:block; width:42px; height:42px; margin:1.25rem 1.25rem -.65rem; border-radius:13px; background:linear-gradient(135deg,#eef2ff,#e8fbfc); }
.row.g-3 > .col-6 .card::after { content:""; position:absolute; right:-25px; bottom:-32px; width:85px; height:85px; border-radius:50%; background:#3157d5; opacity:.07; }
.row.g-3 > .col-6 .card .text-secondary.small { font-size:.8rem; font-weight:700; }
.row.g-3 > .col-6 .card .display-6 { color:var(--ink); font-size:2rem; font-weight:800!important; letter-spacing:-.04em; }

/* Catalog editors */
.catalog-tabs{display:flex;gap:.45rem;overflow-x:auto;padding:.35rem;background:#eaf0f8;border-radius:16px}.catalog-tab{white-space:nowrap;border:0;border-radius:12px;padding:.7rem 1rem;color:#64748b;background:transparent;font-weight:750}.catalog-tab.active{color:#fff;background:linear-gradient(135deg,var(--brand),var(--brand-dark));box-shadow:0 8px 18px rgba(49,87,213,.2)}
.editor-grid{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(480px,1.45fr);gap:1.25rem;align-items:start}.editor-grid>.card:first-child{position:sticky;top:92px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.form-grid .full{grid-column:1/-1}.status-pill{display:inline-flex;align-items:center;padding:.38rem .65rem;border-radius:999px;font-size:.72rem;font-weight:800}.status-pill.on{color:#267844;background:#e5f7e8}.status-pill.off{color:#8a5260;background:#f7e9ed}.directory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.8rem}.search-box{max-width:320px}.employee-grid{grid-template-columns:minmax(390px,.85fr) minmax(620px,1.5fr)}
@media(max-width:1100px){.editor-grid,.employee-grid{grid-template-columns:1fr}.editor-grid>.card:first-child{position:static}}@media(max-width:640px){.form-grid{grid-template-columns:1fr}.directory-toolbar{align-items:stretch;flex-direction:column}.search-box{max-width:none}}

/* Plans */
.subscription-summary{display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:1.5rem 1.7rem;color:#fff;border-radius:22px;background:linear-gradient(125deg,#172b64,#3157d5);box-shadow:0 20px 40px rgba(49,87,213,.2)}.subscription-summary h2{margin:.25rem 0}.subscription-summary p{margin:0;color:rgba(255,255,255,.75)}.subscription-summary .eyebrow{color:#9ee9ef}.subscription-renewal{display:flex;flex-direction:column;align-items:flex-end}.subscription-renewal span{font-size:.75rem;color:rgba(255,255,255,.65)}.plans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}.plan-card{position:relative;padding:1.5rem;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(37,55,98,.06)}.plan-card.selected{border:2px solid var(--brand);box-shadow:0 18px 40px rgba(49,87,213,.14)}.current-plan{position:absolute;right:1rem;top:1rem;padding:.35rem .65rem;color:#276443;background:#e5f7e8;border-radius:999px;font-size:.7rem;font-weight:800}.plan-code{color:var(--brand);font-size:.7rem;font-weight:850;letter-spacing:.12em}.plan-card h2{margin:.35rem 0}.plan-description{min-height:48px;color:var(--muted)}.plan-price{margin:1.2rem 0}.plan-price strong{font-size:2rem;letter-spacing:-.04em}.plan-price span{color:var(--muted);font-size:.78rem}.plan-features{padding:0;list-style:none;margin:0 0 1.4rem}.plan-features li{padding:.55rem 0;border-bottom:1px solid #edf1f7;color:#5f6c84}.plan-features li::before{content:"✓";color:#28a466;font-weight:900;margin-right:.55rem}.onboarding-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem}.setup-item{display:flex;gap:.65rem;align-items:center;padding:.9rem;border-radius:13px;color:#7b879d;background:#f5f7fb}.setup-item.done{color:#267844;background:#e9f8ed}.setup-item span{font-size:1.1rem}@media(max-width:900px){.plans-grid{grid-template-columns:1fr}.onboarding-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.subscription-summary{align-items:flex-start;flex-direction:column}.subscription-renewal{align-items:flex-start}.onboarding-grid{grid-template-columns:1fr}}
