html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f7f9;
    color: #1e2933;
}

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;
    max-width: 1280px;
    min-width: 0;
    width: 100%;
}

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5O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red."
    }

.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;
}

.api-pill {
    border: 1px solid #cbd5df;
    border-radius: 999px;
    color: #52616f;
    font-size: .875rem;
    padding: .35rem .75rem;
    text-decoration: none;
}

.api-pill:hover {
    background: #eef4f8;
    color: #1b6ec2;
}

.brand-lockup {
    align-items: center;
    display: grid;
    gap: .55rem;
    justify-items: start;
    line-height: 1;
    padding-bottom: .85rem;
    padding-top: .85rem;
}

.brand-lockup img {
    display: block;
    height: auto;
    max-width: 190px;
    width: 100%;
}

.brand-lockup span {
    color: #ffffff;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.site-footer {
    color: #52616f;
    font-size: .78rem;
    line-height: 1.35;
    margin: 1rem 0 1.25rem;
    text-align: center;
}

.nav-access {
    margin-top: .75rem;
}

.access-button {
    font-weight: 700;
    margin-bottom: .45rem;
    width: 100%;
}

.user-summary {
    color: #dce8ef;
    display: grid;
    font-size: .78rem;
    gap: .18rem;
    line-height: 1.25;
    margin-top: .65rem;
}

.user-summary strong {
    color: #ffffff;
    font-size: .92rem;
}

.login-backdrop {
    align-items: center;
    background: rgba(10, 24, 36, .46);
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 2000;
}

.login-modal {
    background: #ffffff;
    border: 1px solid #cbd5df;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
    display: grid;
    gap: .85rem;
    max-width: 360px;
    padding: 1.2rem;
    width: min(360px, calc(100vw - 2rem));
}

.login-modal h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

.login-modal label {
    color: #394b59;
    display: grid;
    font-size: .86rem;
    gap: .25rem;
}

.confirm-text {
    color: #394b59;
    font-size: .92rem;
    margin: 0;
}

.revisions-modal {
    max-height: calc(100vh - 2rem);
    max-width: 1120px;
    overflow: auto;
    width: min(1120px, calc(100vw - 2rem));
}

.modal-title-row {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.revision-detail-title {
    font-size: .98rem;
    font-weight: 800;
    margin: .35rem 0 0;
}

.login-error {
    background: #fbe4e6;
    border: 1px solid #f2b8c0;
    border-radius: 6px;
    color: #9f1d2f;
    font-size: .84rem;
    padding: .55rem .65rem;
}

.login-actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
}

.user-page {
    display: grid;
    gap: .75rem;
    justify-content: center;
    margin-top: 4rem;
    text-align: center;
}

.user-page h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}

.user-card {
    background: #fff;
    border: 1px solid #dde5ec;
    border-radius: 8px;
    color: #1e2933;
    display: grid;
    gap: .25rem;
    min-width: 280px;
    padding: 1rem 1.25rem;
}

.user-card p {
    margin: 0;
}

.home-dashboard {
    display: grid;
    gap: 1rem;
    grid-template-rows: auto auto 1fr;
    min-height: calc(100vh - 150px);
}

.dashboard-header {
    align-items: baseline;
    display: flex;
    gap: 1rem;
}

.dashboard-title-block {
    display: grid;
    gap: .2rem;
    justify-items: start;
}

.dashboard-header h1 {
    color: #13202b;
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0;
}

.dashboard-header span {
    color: #52616f;
    font-size: .9rem;
}

.dashboard-center {
    align-self: center;
    display: grid;
    gap: .55rem;
    justify-self: center;
}

.online-total {
    color: #13202b;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.header-online-total {
    font-size: .92rem;
    text-align: left;
}

.lists-panel {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.dashboard-list {
    color: #111827;
}

.dashboard-list h2 {
    font-size: .84rem;
    font-weight: 400;
    margin: 0 0 .2rem;
}

.dashboard-list table {
    background: #fff;
    border: 1px solid #8b8b8b;
    border-collapse: collapse;
    font-size: .83rem;
    line-height: 1.25;
    min-width: 100px;
}

.dashboard-list th,
.dashboard-list td {
    border: 0;
    padding: .12rem .45rem .12rem .12rem;
    white-space: nowrap;
}

.dashboard-list th {
    font-weight: 700;
    text-align: left;
}

.license-search-panel {
    justify-self: center;
    display: grid;
    gap: .45rem;
    min-width: min(760px, 100%);
}

.authenticated-home {
    align-self: start;
    display: grid;
    gap: 1rem;
    justify-items: center;
    margin-top: 2rem;
    min-width: 0;
    width: 100%;
}

.search-title {
    font-size: .95rem;
    font-weight: 800;
    text-align: center;
}

.search-fields {
    align-items: end;
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(180px, 1fr) 120px minmax(140px, 180px) auto;
}

.search-fields label {
    color: #394b59;
    display: grid;
    font-size: .82rem;
    gap: .2rem;
}

.search-note {
    color: #607080;
    font-size: .83rem;
    text-align: center;
}

.license-results {
    justify-self: stretch;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    width: 100%;
}

.compact-table {
    background: #fff;
    border: 1px solid #8b8b8b;
    border-collapse: collapse;
    font-size: .82rem;
    line-height: 1.25;
}

.compact-table th,
.compact-table td {
    border-bottom: 1px solid #e6ebef;
    padding: .22rem .45rem;
    text-align: left;
    white-space: nowrap;
}

.compact-table th {
    background: #f7f9fb;
    font-weight: 700;
}

.license-edit-page {
    display: grid;
    gap: 1rem;
}

.page-actions {
    align-items: center;
    display: flex;
    justify-content: flex-start;
}

.edit-header {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.edit-header h1 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0;
}

.edit-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
}

.edit-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.edit-section {
    background: #fff;
    border: 1px solid #dde5ec;
    border-radius: 8px;
    display: grid;
    gap: .75rem;
    padding: .9rem;
}

.edit-section h2,
.modules-box h2 {
    font-size: .98rem;
    font-weight: 800;
    margin: 0;
}

.reload-lists-bar {
    align-items: center;
    display: flex;
    justify-content: flex-start;
}

.form-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid label {
    color: #394b59;
    display: grid;
    font-size: .82rem;
    gap: .2rem;
}

.check-row {
    align-content: end;
    display: flex !important;
    gap: .4rem;
}

.modules-box {
    background: #fff;
    border: 1px solid #dde5ec;
    border-radius: 8px;
    display: grid;
    gap: .45rem;
    max-height: calc(100vh - 150px);
    overflow: auto;
    padding: .9rem;
    position: sticky;
    top: 1rem;
}

.modules-box label {
    align-items: start;
    display: flex;
    gap: .4rem;
    font-size: .82rem;
}

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.license-shell {
    display: grid;
    gap: 1.25rem;
}

.license-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.eyebrow {
    color: #607080;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 0 0 .25rem;
    text-transform: uppercase;
}

.license-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
}

.subtitle {
    color: #52616f;
    margin: .35rem 0 0;
}

.toolbar {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(220px, 1fr) auto auto;
}

.summary-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
    background: #fff;
    border: 1px solid #dde5ec;
    border-radius: 8px;
    padding: 1rem;
}

.metric span {
    color: #607080;
    display: block;
    font-size: .85rem;
}

.metric strong {
    color: #13202b;
    display: block;
    font-size: 1.8rem;
    line-height: 1.15;
}

.table-wrap {
    background: #fff;
    border: 1px solid #dde5ec;
    border-radius: 8px;
    overflow-x: auto;
}

.license-table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}

.license-table th,
.license-table td {
    border-bottom: 1px solid #edf1f5;
    padding: .9rem .85rem;
    text-align: left;
    vertical-align: middle;
}

.license-table th {
    color: #607080;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.license-table tbody tr:hover {
    background: #f8fafc;
}

.serial {
    color: #153e75;
    font-family: Consolas, 'Courier New', monospace;
    font-weight: 700;
}

.status {
    border-radius: 999px;
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    min-width: 92px;
    padding: .28rem .65rem;
    text-align: center;
}

.status-active {
    background: #e6f4ea;
    color: #146c2e;
}

.status-expiring {
    background: #fff4db;
    color: #8a5a00;
}

.status-suspended {
    background: #fbe4e6;
    color: #9f1d2f;
}

.status-neutral {
    background: #e8eef4;
    color: #394b59;
}

.actions {
    display: flex;
    gap: .5rem;
    white-space: nowrap;
}

.loading,
.empty-state {
    color: #607080;
    padding: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .license-header {
        display: grid;
    }

    .license-header h1 {
        font-size: 2.25rem;
    }

    .toolbar,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .lists-panel {
        display: grid;
    }

    .search-fields,
    .edit-layout,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .modules-box {
        max-height: none;
        position: static;
    }
}
