.logo-topbar {
    letter-spacing: 0.08em;
}
.font-monospace {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.order-builder-row {
    border: 1px solid #e5e8eb;
    border-radius: 0.35rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
}
.order-builder-row .drag-label {
    font-weight: 600;
}
.auth-fluid-right {
    background: linear-gradient(135deg, #273c75, #192a56);
}
.sticky-top {
    z-index: 1;
}
.side-nav-link span {
    vertical-align: middle;
}
.linqix-auth-pending {
    visibility: hidden !important;
}
.linqix-api-loading {
    min-height: 3rem;
    display: flex;
    align-items: center;
}
.linqix-api-error {
    margin-bottom: 1rem;
}

/* v4 customer auth pages - based on the existing SaaS authentication card layout */
.authentication-bg {
    background-color: #f5f7fb;
    background-image: radial-gradient(
        circle at 50% 48%,
        rgba(114, 145, 255, 0.1) 0,
        rgba(114, 145, 255, 0.1) 28%,
        rgba(114, 145, 255, 0.055) 28%,
        rgba(114, 145, 255, 0.055) 44%,
        transparent 44%
    );
}
.linqix-auth-card {
    max-width: 660px;
    margin: 0 auto;
    box-shadow: 0 10px 35px rgba(54, 74, 120, 0.12);
    border: 0;
}
.linqix-auth-logo {
    display: inline-block;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #3f4754;
    padding: 0.55rem 0;
}
.linqix-auth-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1rem;
    text-align: center;
    color: #98a6ad;
}
#login-info .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}
.linqix-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    visibility: visible;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(49, 58, 70, 0.48);
}
.linqix-auth-overlay[hidden] {
    display: none !important;
}
.linqix-auth-overlay .card {
    width: 100%;
    max-width: 360px;
}
body.linqix-auth-busy {
    overflow: hidden;
}
@media (max-width: 767.98px) {
    .linqix-auth-footer {
        position: static;
        padding-bottom: 1rem;
    }
    .account-pages {
        min-height: auto !important;
    }
}
/* v14 customer portal, matching the existing SaaS layout */
body[data-linqix-realm='customer']:not(.authentication-bg) {
    background: #f8f9fc;
}
.portal-language {
    display: inline-flex !important;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}
.portal-language select {
    background: transparent;
    color: #8391a2;
    min-width: 112px;
    cursor: pointer;
}
.auth-language {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 5;
    width: 130px;
}
.portal-beta {
    max-width: 1300px;
    margin: 8px auto 40px;
}
.portal-actions {
    margin-bottom: 24px;
}
.portal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
    box-shadow: none;
}
.portal-stats > div {
    padding: 28px 12px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    text-align: center;
    border-right: 1px solid #e3e8ef;
}
.portal-stats > div:last-child {
    border: 0;
}
.portal-stats i {
    font-size: 27px;
    color: #98a6ad;
}
.portal-stats strong,
.portal-stats button {
    font-size: 24px;
    font-weight: 600;
    color: #6c757d;
}
.portal-stats span,
.portal-stats a {
    color: #98a6ad;
}
.portal-notifications {
    max-height: 400px;
    overflow: auto;
}
.portal-notifications td {
    padding: 18px 12px;
    vertical-align: middle;
}
.portal-notifications th {
    position: sticky;
    top: 0;
    background: #fff;
}
.portal-tabs {
    background: #eef2f7;
    flex-wrap: nowrap;
}
.portal-tabs .nav-link {
    border: 0;
    border-radius: 0;
    min-width: 120px;
    color: #6c757d;
}
.portal-tabs .nav-link.active {
    background: #727cf5;
    color: #fff;
}
.portal-service {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(100px, 1fr) 100px 32px;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid #eef2f7;
    align-items: center;
}
.portal-service small {
    overflow-wrap: anywhere;
}
.portal-message {
    padding: 18px;
    background: #f6f7fb;
    border: 1px solid #eef2f7;
    border-radius: 5px;
    margin-bottom: 16px;
}
.portal-message.staff {
    background: #eef0ff;
}
.portal-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    border-bottom: 1px solid #eef2f7;
}
.portal-steps li {
    flex: 1;
    padding: 16px 8px;
    color: #98a6ad;
    font-size: 13px;
}
.portal-steps li.active {
    color: #727cf5;
    border-bottom: 3px solid #727cf5;
}
.portal-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef2f7;
    margin-right: 7px;
}
.portal-steps .active span {
    color: #fff;
    background: #727cf5;
}
.portal-summary {
    position: sticky;
    top: 90px;
}
.portal-price {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}
.portal-price dt {
    font-weight: 400;
}
.portal-price dd {
    text-align: right;
    margin: 0;
}
@media (max-width: 767.98px) {
    .portal-language {
        padding: 0 5px;
    }
    .portal-language select {
        min-width: 85px;
        font-size: 12px;
    }
    .portal-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-stats > div {
        padding: 20px 8px;
        border-bottom: 1px solid #e3e8ef;
    }
    .portal-stats > div:nth-child(2) {
        border-right: 0;
    }
    .portal-beta {
        margin-bottom: 20px;
    }
    .portal-actions {
        flex-wrap: wrap;
    }
    .portal-service {
        grid-template-columns: 1fr 80px;
    }
    .portal-service > div:first-child {
        grid-column: 1/-1;
    }
    .portal-service > button {
        grid-column: 2;
    }
    .portal-tabs {
        width: 100%;
    }
    .portal-tabs .nav-link {
        min-width: 0;
        flex: 1;
        padding: 10px 8px;
        font-size: 12px;
    }
    .portal-steps {
        gap: 4px;
    }
    .portal-steps li {
        font-size: 11px;
        padding: 12px 2px;
    }
    .portal-steps span {
        display: flex;
        margin: 0 0 6px;
    }
    .portal-summary {
        position: static;
    }
}

#customer-avatar {
    width: 32px;
    height: 32px;
}
.portal-stats [hidden],
#portal-order [hidden] {
    display: none !important;
}

.portal-product {
    border: 1px solid #e7ebf0;
    box-shadow: none;
}
.portal-product-title {
    background: #1557e8;
    color: #fff;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 17px;
}
.portal-product li {
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}
.portal-product h3 {
    padding: 8px 0 18px;
    border-bottom: 1px solid #eef2f7;
}

/* Service details reuse the SaaS cards, tabs and tables. */
.hosting-title,
.hosting-table td,
.hosting-secrets dd {
    overflow-wrap: anywhere;
}
.hosting-table th {
    width: 42%;
    font-weight: 600;
}
.hosting-table td,
.hosting-table th {
    padding: 1rem 0.75rem;
    vertical-align: top;
}
.hosting-secrets dd {
    font-family: monospace;
    padding: 0.5rem;
    background: #f1f3fa;
    border-radius: 3px;
}
.portal-service .dropdown-menu {
    max-width: min(340px, 90vw);
}
.portal-service .dropdown-item {
    white-space: normal;
}
@media (max-width: 575px) {
    .hosting-table th {
        width: 44%;
    }
    .hosting-table td,
    .hosting-table th {
        padding: 0.8rem 0.25rem;
    }
    #hosting-tab-plan,
    #hosting-tab-access {
        font-size: 0.8rem;
        padding: 0.7rem 0.5rem;
    }
}

#worker-actions .table-responsive,
#background-list .table-responsive,
#integration-jobs .table-responsive {
    max-height: 32rem;
    overflow: auto;
}
#worker-actions thead,
#background-list thead,
#integration-jobs thead {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.linqix-brand-logo {
    object-fit: contain;
    max-width: 100%;
    height: auto;
}
.linqix-login-logo {
    width: 220px;
}
.linqix-sidebar-logo {
    width: 180px;
    max-height: 60px;
    padding: 3px 12px;
}
.linqix-sidebar-logo-small {
    width: 56px;
    padding: 4px;
}

.settings-tabs {
    gap: 0.5rem;
    flex-wrap: wrap;
}
.settings-tabs .nav-link {
    flex: 1 1 130px;
}
#settings-content pre {
    overflow-wrap: anywhere;
}

.linqix-operation-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(25, 35, 50, 0.55);
}
.linqix-operation-dialog {
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    border-radius: 6px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}
.linqix-worker-console {
    background: #1e2937;
    color: #e7edf5;
    padding: 1rem;
    max-height: 22rem;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 12px/1.6 monospace;
}
