html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn {
    font-size: 12px;
    font-weight: 500;
}

button,
.btn {
    font-size: 12px !important;
    font-weight: 500 !important;
}

.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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggO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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;
}
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #d7d7d7;
}

.auth-header { background:#087eaa; color:#fff; text-align:center; font-weight:700; padding:.65rem 1rem  .75rem; margin:0 0 1rem; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.35rem; }
.auth-header img { display:none; }
.auth-header span { display:block; font-size:.75rem; font-weight:400; opacity:.9; margin-top:.15rem; }
.auth-brand { display:flex; flex-direction:column; align-items:center; margin:0 auto 1rem; color:#102d5b; }
.auth-brand-circle { width:92px; height:92px; padding:5px; display:grid; place-items:center; overflow:hidden; }
.auth-brand-circle img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
@font-face { font-family:'Frizon'; src:url('/fonts/Frizon.ttf') format('truetype'); font-display:swap; }
.auth-brand strong { font-family:'Frizon',sans-serif; font-size:1.15rem; letter-spacing:.08em; margin-top: -10px; }
.auth-form-page { text-align:right; }
.auth-form-icon { width:58px; height:58px; margin:0 auto .8rem; border-radius:50%; display:grid; place-items:center; color:#087eaa; background:#e8f7fa; font-size:1.65rem; }
.auth-form-page h1 { margin:0; text-align:center; color:#102d5b; font-size:1.45rem; }
.auth-form-lead { margin:.55rem auto 1.35rem; max-width:300px; color:#667892; text-align:center; font-size:.86rem; line-height:1.7; }
.auth-field { margin-bottom:1rem; }
.auth-field label { display:block; margin-bottom:.4rem; color:#263e61; font-size:.83rem; font-weight:700; }
.auth-input-wrap { position:relative; }
.auth-input-wrap > i { position:absolute; right:.85rem; top:50%; transform:translateY(-50%); color:#2b9eb0; z-index:1; }
.auth-input-wrap .form-control { padding-right:2.35rem; height:48px; border:1px solid #d6e1eb; border-radius:10px; direction:ltr; text-align:left; }
.auth-input-wrap .form-control:focus { border-color:#159dad; box-shadow:0 0 0 .2rem rgba(21,157,173,.14); }
.auth-submit { width:100%; height:46px; border:0; border-radius:10px; background:linear-gradient(135deg,#087eaa,#159dad); color:#fff; font-weight:700; transition:transform .15s ease,box-shadow .15s ease; }
.auth-submit:hover { transform:translateY(-1px); box-shadow:0 7px 16px rgba(8,126,170,.2); }
.auth-submit i { margin-left:.35rem; }
.auth-back-link { display:block; margin-top:1.25rem; color:#087eaa; text-align:center; font-size:.83rem; text-decoration:none; }
.auth-back-link:hover { text-decoration:underline; }
.auth-validation { display:block; margin-top:.3rem; color:#b42318; font-size:.75rem; }
.auth-card > h1 { display:none; }

.auth-card {
    width: min(100%, 396px);
    background: #ffffff;
    border: 1px solid #dbe5ea;
    border-radius: 0;
    padding: 1.5rem;
}

.auth-brand a {
    color: #0b5b7a;
}

.auth-form .form-floating > label {
    right: 0;
    left: auto;
    transform-origin: 100% 0;
}

.auth-form .form-control {
    text-align: right;
}

/* global-sidebar-fallback */
.app-sidebar .app-nav {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: .9rem 0 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .36) rgba(0, 0, 0, .12);
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-sidebar .app-nav::-webkit-scrollbar {
    width: 8px;
}

.app-sidebar .app-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .12);
}

.app-sidebar .app-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .36);
    border-radius: 999px;
}

.app-sidebar .app-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .52);
}

.app-sidebar .app-nav-link {
    min-height: 36px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: .48rem 2rem .48rem 2.2rem;
    color: rgba(255, 255, 255, .94) !important;
    text-decoration: none !important;
    border: 0;
    border-inline-start: 3px solid transparent;
    background: transparent;
    width: 100%;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.app-sidebar .app-nav-link:hover,
.app-sidebar .app-nav-link.active,
.app-sidebar .nav-group.is-open > .nav-toggle {
    background: rgba(0, 0, 0, .12);
    color: #ffffff !important;
    text-decoration: none !important;
    border-inline-start-color: rgba(255, 255, 255, .75);
}

.app-sidebar .app-nav-link span:not(.nav-chevron) {
    display: block;
    width: 100%;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar .nav-section {
    justify-content: flex-start;
    padding: .48rem 2rem .48rem 2.2rem;
    min-height: 38px;
    font-size: 14px;
}

.app-sidebar .nav-section span {
    text-align: right !important;
}

.app-sidebar .nav-chevron {
    position: absolute;
    left: 1.05rem;
    top: 50%;
    width: .5rem;
    height: .5rem;
    margin: 0;
    border-left: 2px solid rgba(255, 255, 255, .95);
    border-bottom: 2px solid rgba(255, 255, 255, .95);
    transform: translateY(-50%) rotate(45deg);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), border-color .2s ease;
}

.app-sidebar .nav-group.is-open > .nav-toggle .nav-chevron {
    transform: translateY(-50%) rotate(135deg);
    border-color: #3aa8e8;
}

.app-sidebar .nav-children {
    display: block;
    max-height: 0;
    background: #37464a;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height .34s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, transform .28s ease;
}

.app-sidebar .nav-group.is-open > .nav-children {
    max-height: none;
    opacity: 1;
    transform: translateY(0);
}

.app-sidebar .nav-child-link {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: .48rem 2.65rem .48rem 1rem;
    color: #ffffff !important;
    text-align: right;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar .nav-child-link span {
    display: block;
    width: 100%;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar .nav-child-link:hover,
.app-sidebar .nav-child-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .10);
    text-decoration: none !important;
}

.app-sidebar .plan-locked {
    cursor: pointer;
    opacity: .82;
}

.app-sidebar .plan-locked:hover {
    opacity: 1;
    background: rgba(255, 190, 45, .12);
}

.app-sidebar .plan-locked .nav-plan-lock,
.app-sidebar .app-nav-link.plan-locked .nav-plan-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    margin-inline-start: 6px;
    color: #ffd166;
    font-size: 11px;
    overflow: visible;
}

.upgrade-notice {
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    border: 1px solid #e4b341;
    border-inline-start: 5px solid #e4a719;
    background: #fff9e8;
    color: #634600;
}

.upgrade-notice strong { font-size: 16px; }
.upgrade-notice span { font-size: 13px; }

.health-section { display: grid; gap: 12px; }
.health-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.health-stats article { display: grid; gap: 4px; padding: 10px; border: 1px solid #d2e1e7; background: #fff; }
.health-stats span { color: #647b86; font-size: 11px; }
.health-stats strong { font-size: 22px; color: #164c63; }
.health-stats .h-0 { border-block-start: 4px solid #2b9a5a; }
.health-stats .h-1 { border-block-start: 4px solid #d2a126; }
.health-stats .h-2 { border-block-start: 4px solid #e17a24; }
.health-stats .h-3 { border-block-start: 4px solid #c83c3c; }
.health-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 240px); gap: 8px; margin-bottom: 10px; }
.health-list { display: grid; gap: 9px; }
.health-card { border: 1px solid #d3e1e7; border-inline-start-width: 5px; padding: 11px; background: #fff; }
.health-card.h-0 { border-inline-start-color: #2b9a5a; }
.health-card.h-1 { border-inline-start-color: #d2a126; }
.health-card.h-2 { border-inline-start-color: #e17a24; }
.health-card.h-3 { border-inline-start-color: #c83c3c; }
.health-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.health-card-head > div { display: grid; gap: 2px; min-width: 0; }
.health-card-head strong { color: #073f5b; font-size: 15px; }
.health-card-head small { color: #6b818b; }
.health-badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 20px; background: #edf3f5; font-size: 11px; font-weight: 800; }
.health-card.h-0 .health-badge { background: #e3f5ea; color: #176d3a; }
.health-card.h-1 .health-badge { background: #fff3cd; color: #7a5900; }
.health-card.h-2 .health-badge { background: #ffead8; color: #914410; }
.health-card.h-3 .health-badge { background: #fde1e1; color: #9f2525; }
.health-reason { margin: 8px 0; color: #425f6c; font-size: 12px; }
.health-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.health-metrics span { display: grid; gap: 2px; padding: 6px; border: 1px solid #e0e9ed; text-align: center; font-size: 12px; }
.health-metrics b { color: #667f8a; font-size: 10px; }
.support-followup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 9px; align-items: center; }
.support-actions { display: flex; gap: 5px; flex-wrap: wrap; }
@media (max-width: 760px) {
    .health-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .health-stats .h-total { grid-column: 1 / -1; }
    .health-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .support-followup { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
    .health-filters, .health-metrics { grid-template-columns: minmax(0, 1fr); }
    .health-card-head { flex-direction: column; }
    .support-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.app-sidebar .nav-level-1 > .nav-toggle {
    padding-inline-end: 2.65rem;
    background: rgba(0, 0, 0, .08);
}

.app-sidebar .nav-level-1 > .nav-children {
    background: #303f43;
}

.app-sidebar .nav-level-1 .nav-child-link {
    padding-inline-end: 3.25rem;
}

.pending-payment-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid #e8c86c;
    background: #fff8df;
    color: #6f5100;
}

.pending-payment-notice > i {
    font-size: 20px;
}

.pending-payment-notice > div {
    display: grid;
    gap: 2px;
}

.pending-payment-notice strong {
    font-size: 14px;
}

.pending-payment-notice span {
    font-size: 12px;
}

.billing-platform-value {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #cfe0e8;
    background: linear-gradient(135deg, #f3fbfd, #fff);
}

.platform-intro {
    display: flex;
    align-items: center;
    gap: 13px;
}

.platform-intro > span {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    height: 48px;
    border-radius: 50%;
    background: #087da8;
    color: #fff;
    font-size: 21px;
}

.platform-intro h2 {
    margin: 0 0 4px;
    color: #075578;
    font-size: 21px;
}

.platform-intro p {
    margin: 0;
    color: #536f7b;
    line-height: 1.8;
}

.core-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.core-feature-grid article {
    display: flex;
    gap: 9px;
    padding: 10px;
    border: 1px solid #d9e7ec;
    background: #fff;
}

.core-feature-grid article > i {
    color: #0a82ad;
    font-size: 17px;
}

.core-feature-grid article > div {
    display: grid;
    gap: 3px;
}

.core-feature-grid strong {
    color: #164b61;
    font-size: 13px;
}

.core-feature-grid span {
    color: #6a7e87;
    font-size: 11px;
    line-height: 1.55;
}

.feature-more {
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: #087da8;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.feature-more:hover,
.feature-more:focus-visible {
    text-decoration: underline;
}

.feature-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(5, 35, 48, .62);
    backdrop-filter: blur(2px);
}

.feature-modal {
    width: min(620px, 100%);
    max-height: min(82vh, 680px);
    overflow: auto;
    border: 1px solid #bcd4de;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 33, 47, .3);
}

.feature-modal header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 11px;
    padding: 15px;
    border-bottom: 1px solid #d5e4ea;
    background: linear-gradient(135deg, #eff9fc, #fff);
}

.feature-modal-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #087da8;
    color: #fff;
    font-size: 20px;
}

.feature-modal header small {
    color: #6b818b;
}

.feature-modal h2 {
    margin: 2px 0 0;
    color: #075578;
    font-size: 21px;
}

.feature-modal-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #cadde5;
    background: #fff;
    color: #496772;
}

.feature-modal-body {
    padding: 18px;
    color: #405f6c;
    line-height: 1.9;
}

.feature-modal-body p {
    margin: 0;
}

.feature-modal-summary {
    margin-bottom: 12px !important;
    padding-bottom: 12px;
    border-bottom: 1px dashed #cbdde5;
    color: #174b62;
    font-weight: 800;
}

.feature-detail-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: #f5fafc;
    border: 1px solid #dce9ee;
}

.feature-detail-list li > i {
    margin-top: 4px;
    color: #16834b;
    flex: 0 0 auto;
}

.feature-modal footer {
    display: flex;
    justify-content: center;
    padding: 12px 18px 16px;
    border-top: 1px solid #e0e9ed;
}

.feature-modal footer .btn {
    min-width: 150px;
}

.billing-comparison {
    border: 1px solid #d2e2e9;
    padding: 15px;
}

.billing-comparison table {
    width: 100%;
    border-collapse: collapse;
}

.billing-comparison th,
.billing-comparison td {
    padding: 9px;
    border: 1px solid #d5e3e9;
    text-align: center;
    white-space: nowrap;
}

.billing-comparison thead th {
    background: #087da8;
    color: #fff;
}

.billing-comparison tbody th {
    background: #eef6f8;
    color: #174b62;
    text-align: start;
}

.billing-comparison tbody tr:nth-child(even) td {
    background: #f9fbfc;
}

.compare-yes {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #147645;
    font-weight: 800;
}

.compare-no {
    color: #a8b3b8;
    font-weight: 800;
}

@media (max-width: 760px) {
    .billing-platform-value { padding: 10px; }
    .core-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .billing-comparison { padding: 6px; }
    .billing-comparison th, .billing-comparison td { padding: 6px; }
    .feature-modal-backdrop { align-items: end; padding: 8px; }
    .feature-modal { width: 100%; max-height: 88vh; }
    .feature-modal header { padding: 12px; }
    .feature-modal-body { padding: 14px; }
}

@media (max-width: 420px) {
    .platform-intro { align-items: flex-start; }
    .platform-intro > span { flex-basis: 38px; height: 38px; font-size: 17px; }
    .platform-intro h2 { font-size: 17px; }
    .core-feature-grid { grid-template-columns: minmax(0, 1fr); }
}
