/* ==========================================================
   Unified Business Hub — Master Stylesheet
   ========================================================== */

:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 84px;
    --topbar-height: 58px;
    --sidebar-bg: #0f172a;
    --sidebar-hover: rgba(255,255,255,0.06);
    --sidebar-active-bg: rgba(59,130,246,0.18);
    --sidebar-active-border: #3b82f6;
    --sidebar-text: #94a3b8;
    --sidebar-text-bright: #cbd5e1;
    --sidebar-text-active: #ffffff;
    --sidebar-section-border: rgba(255,255,255,0.06);
    --topbar-bg: #ffffff;
    --topbar-border: #dbe3ec;
    --content-bg: #f3f6f9;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.16);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.22s ease;
    --hub-surface: #ffffff;
    --hub-surface-muted: #f8fafc;
    --hub-border: #dbe3ec;
    --hub-border-strong: #cbd5e1;
    --hub-text: #0f172a;
    --hub-text-muted: #5f6f85;
    --hub-radius-control: 0.5rem;
    --hub-radius-surface: 0.75rem;
    --hub-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background: var(--content-bg);
    color: #1e293b;
    overflow-x: hidden;
}

::selection {
    background: rgba(59, 130, 246, 0.18);
    color: #0f172a;
}

a,
button,
input,
select,
textarea,
[role="button"] {
    transition: box-shadow 0.15s, border-color 0.15s, background-color 0.15s, color 0.15s, transform 0.15s;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.22rem var(--accent-soft);
}

.hub-skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.7rem 1rem;
    border-radius: var(--hub-radius-control);
    color: #fff;
    background: #0f172a;
    text-decoration: none;
    transform: translateY(calc(-100% - 1rem));
}

.hub-skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

/* ==========================================================
   TOP BAR
   ========================================================== */
.hub-topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1020;
    transition: left var(--transition);
    box-shadow: none;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.sidebar-toggle {
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid #dbe4f0;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    padding: 0.45rem 0.65rem;
    border-radius: 0.375rem;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    min-width: 44px;
    min-height: 44px;
}
.sidebar-toggle:hover { color: var(--accent); background: #f1f5f9; border-color: #dbe4f0; }

.sidebar-toggle i {
    font-size: 1.1rem;
}

.sidebar-toggle-label {
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.topbar-breadcrumb {
    min-width: 0;
}

.topbar-breadcrumb .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    font-size: 0.84rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}
.topbar-breadcrumb .breadcrumb::-webkit-scrollbar { display: none; }
.topbar-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #cbd5e1; }
.topbar-breadcrumb .breadcrumb-item {
    white-space: nowrap;
}
.topbar-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}
.topbar-breadcrumb .breadcrumb-item a:hover { color: var(--accent); }
.topbar-breadcrumb .breadcrumb-item.active { color: #1e293b; font-weight: 500; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.topbar-right .dropdown {
    position: relative;
}

.topbar-app-switcher,
.topbar-user {
    text-decoration: none;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    transition: all 0.15s;
    border: 1px solid transparent;
    background: rgba(248, 250, 252, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    min-height: 44px;
}
.topbar-app-switcher:hover,
.topbar-app-switcher:focus,
.topbar-user:hover,
.topbar-user:focus {
    color: var(--accent);
    background: #f1f5f9;
    border-color: #dbe4f0;
}
.topbar-app-switcher i,
.topbar-user i { font-size: 1.1rem; }

.topbar-right .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: auto;
    display: none;
    min-width: 14rem;
    margin: 0;
    padding: 0.45rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 0.8rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    z-index: 1040;
}

.topbar-right .dropdown-menu.show {
    display: block;
}

.topbar-right .dropdown-header {
    margin: 0;
    padding: 0.45rem 0.85rem 0.35rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.topbar-right .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 0;
}

.topbar-right .dropdown-item:hover,
.topbar-right .dropdown-item:focus {
    color: #1d4ed8;
    background: #eff6ff;
}

.topbar-right .dropdown-item.active,
.topbar-right .dropdown-item:active {
    color: #1d4ed8;
    background: #eff6ff;
}

.topbar-right .dropdown-divider {
    margin: 0.35rem 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
}

.app-switcher-menu {
    min-width: 14rem;
}

.app-switcher-item {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.app-switcher-item.active,
.app-switcher-item:active {
    background: #eff6ff;
    color: #1d4ed8;
}

/* ==========================================================
   SIDEBAR
   ========================================================== */
.hub-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1030;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition), width var(--transition);
    scrollbar-width: thin;
    scrollbar-color: #1e3a5f transparent;
}
.hub-sidebar::-webkit-scrollbar { width: 4px; }
.hub-sidebar::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 4px; }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: var(--topbar-height);
    border-bottom: 1px solid var(--sidebar-section-border);
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.sidebar-brand i {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}

.sidebar-brand-link {
    text-decoration: none;
}

.sidebar-brand-link:hover {
    color: #fff;
}

.sidebar-apps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.85rem 1rem 0.35rem;
    border-bottom: 1px solid var(--sidebar-section-border);
}

.sidebar-apps-primary {
    padding-bottom: 0.8rem;
}

.sidebar-unified-action {
    grid-template-columns: minmax(0, 1fr);
}

.sidebar-unified-action .sidebar-app-chip {
    justify-content: center;
    color: #fff;
    background: #2563eb;
    border-color: rgba(125, 211, 252, 0.35);
}

.sidebar-unified-action .sidebar-app-chip i {
    color: #dbeafe;
}

.sidebar-app-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.7rem;
    background: rgba(255,255,255,0.03);
    color: var(--sidebar-text-bright);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.15s;
}

.sidebar-app-chip-primary {
    min-height: 3.15rem;
    padding: 0.72rem 0.75rem;
    background: rgba(255,255,255,0.045);
    border-color: rgba(148,163,184,0.18);
    font-size: 0.83rem;
    font-weight: 700;
}

.sidebar-app-chip i {
    color: var(--accent);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sidebar-app-chip-primary i {
    font-size: 1.05rem;
}

.sidebar-app-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-app-chip:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
    border-color: rgba(59,130,246,0.4);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
}

.sidebar-app-chip.active {
    color: #fff;
    background: var(--sidebar-active-bg);
    border-color: rgba(59,130,246,0.45);
    box-shadow: inset 0 0 0 1px rgba(59,130,246,0.18);
}

.sidebar-app-chip-primary.active {
    border-color: rgba(96,165,250,0.62);
    box-shadow: inset 0 0 0 1px rgba(96,165,250,0.2), 0 10px 22px rgba(15, 23, 42, 0.24);
}

.sidebar-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    transition: color 0.15s;
}
.sidebar-close:hover { color: #cbd5e1; }

/* ==========================================================
   SIDEBAR NAV
   ========================================================== */
.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0 1rem;
}

/* --- Top-level Hub Dashboard link --- */
.nav-section > .hub-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sidebar-text-bright);
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.nav-section > .hub-link i {
    font-size: 1.05rem;
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
    color: #64748b;
}
.nav-section > .hub-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
}
.nav-section > .hub-link:hover i { color: var(--accent); }
.nav-section > .hub-link.active {
    color: #fff;
    background: var(--sidebar-active-bg);
    border-left-color: var(--sidebar-active-border);
    font-weight: 600;
}
.nav-section > .hub-link.active i { color: var(--accent); }

/* --- App section divider --- */
.nav-section + .nav-section {
    border-top: 1px solid var(--sidebar-section-border);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

.nav-section-primary + .nav-section-primary {
    margin-top: 0.35rem;
}

.nav-section-secondary {
    margin-top: 0.55rem;
    opacity: 0.88;
}

/* --- App section header (collapsible) --- */
.nav-section-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}
.nav-section-header:hover { background: var(--sidebar-hover); }

.nav-section-header > i:first-child {
    font-size: 1.05rem;
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
    color: #64748b;
    transition: color 0.15s;
}
.nav-section-header:hover > i:first-child { color: var(--accent); }

.nav-section-header > span {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sidebar-text-bright);
    white-space: nowrap;
}

.nav-section-primary .nav-section-header > span {
    font-size: 0.9rem;
    font-weight: 700;
}

.nav-section-secondary .nav-section-header {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.nav-section-secondary .nav-section-header > i:first-child,
.nav-section-secondary .nav-section-header > span {
    color: #7f91a8;
}

.section-arrow {
    font-size: 0.7rem;
    color: #475569;
    transition: transform 0.2s, color 0.15s;
    flex-shrink: 0;
}
.nav-section-header.expanded > i:first-child { color: var(--accent); }
.nav-section-header.expanded > span { color: #fff; }
.nav-section-header.expanded .section-arrow {
    transform: rotate(180deg);
    color: #64748b;
}

/* Section items container */
.nav-section-items {
    display: none;
    background: rgba(0,0,0,0.15);
    padding: 0.25rem 0;
}
.nav-section-items.show { display: block; }

/* --- Nav links inside sections --- */
.nav-section-items .hub-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.45rem 1rem 0.45rem 2.6rem;
    font-size: 0.845rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}
.nav-section-items .hub-link i {
    font-size: 0.95rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.nav-section-items .hub-link:hover {
    color: var(--sidebar-text-bright);
    background: var(--sidebar-hover);
}
.nav-section-items .hub-link:hover i { opacity: 1; }
.nav-section-items .hub-link.active {
    color: #fff;
    background: var(--sidebar-active-bg);
    border-left-color: var(--sidebar-active-border);
    font-weight: 500;
}
.nav-section-items .hub-link.active i { opacity: 1; color: var(--accent); }

.nav-section-items .hub-link-muted {
    color: #8090a4;
    font-size: 0.815rem;
}

.nav-section-items .hub-link-muted i {
    opacity: 0.58;
}

/* --- Subsection headers ("Clients", "Orders" etc.) --- */
.nav-subsection { margin: 0; }

.nav-subsection-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 2.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #3d5068;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
    margin-top: 0.2rem;
}
.nav-subsection-header:hover { color: #64748b; }
.nav-subsection-header .section-arrow {
    margin-left: auto;
    font-size: 0.6rem;
}
.nav-subsection-header.expanded .section-arrow { transform: rotate(180deg); }
.nav-subsection-header.expanded { color: #64748b; }

.nav-subsection-items { display: none; }
.nav-subsection-items.show { display: block; }
.nav-subsection-items .hub-link {
    padding-left: 3.25rem;
    font-size: 0.825rem;
}

.nav-subsection-quiet {
    margin-top: 0.25rem;
}

.nav-subsection-quiet .nav-subsection-header {
    color: #526174;
    font-size: 0.69rem;
}

.nav-subsection-quiet .nav-subsection-items .hub-link {
    color: #8796a8;
    font-size: 0.805rem;
}

.nav-subsection-quiet .nav-subsection-items .hub-link.active {
    color: #fff;
}

.nav-subsection-quiet .nav-subsection-items .hub-link.active i {
    color: var(--accent);
    opacity: 1;
}

/* ==========================================================
   SIDEBAR FOOTER
   ========================================================== */
.sidebar-footer {
    border-top: 1px solid var(--sidebar-section-border);
    padding: 0.5rem 0;
    flex-shrink: 0;
}
.sidebar-footer .hub-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 1rem;
    font-size: 0.845rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.15s;
}
.sidebar-footer .hub-link i {
    font-size: 1rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}
.sidebar-footer .hub-link:hover {
    color: var(--sidebar-text-bright);
    background: var(--sidebar-hover);
}

.sidebar-footer-label {
    padding: 0.5rem 1rem 0.15rem;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1025;
    backdrop-filter: blur(2px);
}

/* ==========================================================
   MAIN CONTENT
   ========================================================== */
.hub-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: clamp(1rem, 2vw, 1.5rem);
    min-height: calc(100vh - var(--topbar-height));
    transition: margin-left var(--transition);
}

/* ==========================================================
   COLLAPSED STATE
   ========================================================== */
@media (min-width: 992px) {
    body.sidebar-collapsed .hub-sidebar {
        width: var(--sidebar-collapsed-width);
    }

    body.sidebar-collapsed .hub-topbar {
        left: var(--sidebar-collapsed-width);
    }

    body.sidebar-collapsed .hub-content {
        margin-left: var(--sidebar-collapsed-width);
    }

    body.sidebar-collapsed .sidebar-header {
        justify-content: center;
        padding: 0;
    }

    body.sidebar-collapsed .sidebar-brand-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 0;
    }

    body.sidebar-collapsed .sidebar-apps {
        grid-template-columns: 1fr;
        padding: 0.75rem 0.65rem 0.35rem;
    }

    body.sidebar-collapsed .sidebar-app-chip,
    body.sidebar-collapsed .nav-section > .hub-link,
    body.sidebar-collapsed .nav-section-header,
    body.sidebar-collapsed .sidebar-footer .hub-link {
        justify-content: center;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    body.sidebar-collapsed .sidebar-app-chip {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    body.sidebar-collapsed .nav-section > .hub-link,
    body.sidebar-collapsed .nav-section-header,
    body.sidebar-collapsed .sidebar-footer .hub-link {
        gap: 0;
    }

    body.sidebar-collapsed .sidebar-brand .brand-text,
    body.sidebar-collapsed .sidebar-app-chip span,
    body.sidebar-collapsed .nav-section > .hub-link span,
    body.sidebar-collapsed .nav-section-header > span,
    body.sidebar-collapsed .sidebar-footer .hub-link span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    body.sidebar-collapsed .section-arrow {
        display: none;
    }

    body.sidebar-collapsed .nav-section-items,
    body.sidebar-collapsed .nav-subsection-items {
        display: none !important;
    }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 991.98px) {
    .hub-sidebar { transform: translateX(calc(-1 * var(--sidebar-width))); }
    .hub-topbar { left: 0; }
    .hub-content { margin-left: 0; }
    body.sidebar-open .hub-sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-overlay { display: block; }
    body.sidebar-open { overflow: hidden; }
    body.sidebar-collapsed .hub-sidebar { transform: translateX(calc(-1 * var(--sidebar-width))); }
    .sidebar-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hub-topbar {
        padding: 0 1rem;
    }

    .sidebar-toggle {
        padding: 0.35rem 0.45rem;
    }

    .topbar-right {
        gap: 0.3rem;
    }
}

/* ==========================================================
   UI REMEDIATION COMPONENT CONTRACTS
   ========================================================== */
.topbar-control-prefix {
    color: #7b8798;
    font-weight: 500;
}

.sidebar-apps-label {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-content .btn,
.hub-content .form-control,
.hub-content .form-select {
    border-radius: var(--hub-radius-control);
}

.hub-content .btn:active,
.hub-auth-submit:active {
    transform: translateY(1px);
}

.hub-page-shell {
    max-width: 1240px;
}

.hub-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 0.15rem 0 1.1rem;
    border-bottom: 1px solid var(--hub-border);
}

.hub-page-header-copy {
    min-width: 0;
    max-width: 760px;
}

.hub-page-header h1 {
    margin: 0;
    color: var(--hub-text);
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.hub-page-header p {
    max-width: 65ch;
    margin: 0.45rem 0 0;
    color: var(--hub-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.hub-page-header .hub-page-actions {
    flex-shrink: 0;
    justify-content: flex-end;
}

.hub-page-actions .btn {
    min-height: 2.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: var(--hub-radius-control);
    box-shadow: none;
}

.hub-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-surface);
    background: var(--hub-surface);
}

.hub-kpi {
    min-width: 0;
    padding: 1rem 1.1rem;
    border-left: 1px solid var(--hub-border);
}

.hub-kpi:first-child {
    border-left: 0;
}

.hub-kpi-label {
    color: var(--hub-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.hub-kpi-value {
    margin-top: 0.3rem;
    color: var(--hub-text);
    font-size: 1.55rem;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    line-height: 1.2;
}

.hub-kpi-note {
    margin-top: 0.2rem;
    color: #758397;
    font-size: 0.78rem;
    line-height: 1.4;
}

.hub-section {
    border-color: var(--hub-border);
    border-radius: var(--hub-radius-surface);
    box-shadow: none;
}

.hub-section-header {
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom-color: var(--hub-border);
}

.hub-section-title {
    color: var(--hub-text);
    font-size: 1rem;
}

.hub-section-body {
    padding: 1rem;
}

.hub-action-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hub-action-group-title {
    margin: 0 0 0.45rem;
    color: #65748a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hub-action-list,
.hub-workspace-list,
.hub-usage-list {
    margin: 0;
    padding: 0;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-surface);
    background: var(--hub-surface);
    list-style: none;
    overflow: hidden;
}

.hub-action-row,
.hub-workspace-row,
.hub-usage-row {
    display: grid;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.9rem;
    border-top: 1px solid var(--hub-border);
}

.hub-action-row:first-child,
.hub-workspace-row:first-child,
.hub-usage-row:first-child {
    border-top: 0;
}

.hub-action-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    color: inherit;
    text-decoration: none;
}

.hub-action-row:hover,
.hub-action-row:focus-visible,
.hub-workspace-row:hover {
    background: var(--hub-surface-muted);
}

.hub-action-icon,
.hub-workspace-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--hub-radius-control);
    background: #eaf1ff;
    color: var(--accent);
}

.hub-action-title,
.hub-workspace-title {
    color: var(--hub-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.hub-action-summary,
.hub-workspace-summary,
.hub-usage-meta {
    margin: 0.12rem 0 0;
    color: var(--hub-text-muted);
    font-size: 0.79rem;
    line-height: 1.4;
}

.hub-action-open {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.hub-workspace-row {
    grid-template-columns: 2.25rem minmax(0, 1fr) minmax(9rem, auto) auto;
}

.hub-workspace-status {
    color: #65748a;
    font-size: 0.78rem;
    text-align: right;
}

.hub-workspace-row .btn {
    white-space: nowrap;
}

.hub-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.hub-filter-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hub-filter-field {
    flex: 1 1 18rem;
    max-width: 32rem;
}

.hub-filter-field .form-label {
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
}

.hub-data-table-wrap {
    overflow-x: auto;
    border-color: var(--hub-border);
    border-radius: var(--hub-radius-surface);
    box-shadow: none;
    scrollbar-gutter: stable;
}

.hub-data-table {
    min-width: 680px;
    margin: 0;
}

.hub-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.75rem 0.9rem;
    background: #f6f8fb;
    letter-spacing: 0.035em;
}

.hub-data-table tbody td {
    padding: 0.8rem 0.9rem;
    vertical-align: middle;
}

.hub-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hub-state {
    padding: 1.5rem 1rem;
    color: var(--hub-text-muted);
    text-align: center;
}

.hub-state strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--hub-text);
}

.hub-status-list {
    gap: 0;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-surface);
    background: var(--hub-surface);
    overflow: hidden;
}

.hub-status-item {
    min-height: 3.2rem;
    padding: 0.7rem 0.9rem;
    border: 0;
    border-top: 1px solid var(--hub-border);
    border-radius: 0;
}

.hub-status-item:first-child {
    border-top: 0;
}

.hub-usage-row {
    grid-template-columns: minmax(10rem, 0.8fr) minmax(15rem, 1.4fr) auto;
}

.hub-usage-name {
    color: var(--hub-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.hub-usage-value {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.hub-usage-progress {
    width: 100%;
    height: 0.35rem;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.hub-usage-progress::-webkit-progress-bar {
    background: #e2e8f0;
}

.hub-usage-progress::-webkit-progress-value {
    background: var(--accent);
}

.hub-usage-progress::-moz-progress-bar {
    background: var(--accent);
}

.activity-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.activity-marker {
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.42rem;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.activity-marker.success { border-color: #15803d; }
.activity-marker.info { border-color: var(--accent); }
.activity-marker.warning { border-color: #b45309; }

.hub-auth-page {
    min-height: 100dvh;
    padding: 1rem;
    background: #121b2d;
}

.hub-auth-shell {
    max-width: 920px;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 390px);
    border-radius: var(--hub-radius-surface);
    background: #fff;
    box-shadow: 0 22px 55px rgba(2, 6, 23, 0.34);
    backdrop-filter: none;
}

.hub-auth-brand {
    padding: 2rem;
    background: #14213e;
}

.hub-auth-title {
    max-width: 12ch;
    font-size: clamp(2rem, 3.5vw, 2.55rem);
}

.hub-auth-panel {
    padding: 2rem;
}

.hub-auth-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.8rem;
    border-radius: var(--hub-radius-surface);
    background: var(--accent);
    box-shadow: none;
}

.hub-auth-meta,
.hub-auth-panel .alert {
    border-radius: var(--hub-radius-surface);
    background: #f6f9ff;
}

.hub-auth-panel .form-control {
    min-height: 2.9rem;
    padding: 0.65rem 0.8rem;
    border-radius: var(--hub-radius-control);
}

.hub-auth-submit {
    min-height: 2.9rem;
    padding: 0.65rem 1rem;
    border-radius: var(--hub-radius-control);
    background: var(--accent);
    box-shadow: none;
}

.hub-auth-submit:hover,
.hub-auth-submit:focus {
    background: var(--accent-hover);
}

@media (max-width: 991.98px) {
    .hub-page-header {
        flex-direction: column;
        gap: 0.9rem;
    }

    .hub-page-header .hub-page-actions {
        justify-content: flex-start;
    }

    .hub-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-kpi:nth-child(3) {
        border-left: 0;
    }

    .hub-kpi:nth-child(n + 3) {
        border-top: 1px solid var(--hub-border);
    }

    .hub-action-groups {
        grid-template-columns: 1fr;
    }

    .hub-workspace-row {
        grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    }

    .hub-workspace-status {
        display: none;
    }

    .hub-usage-row {
        grid-template-columns: minmax(8rem, 0.7fr) minmax(12rem, 1.3fr);
    }

    .hub-usage-row > :last-child {
        grid-column: 1 / -1;
    }

    .hub-auth-shell {
        max-width: 720px;
        grid-template-columns: 1fr;
    }

    .hub-auth-brand {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }

    .hub-auth-title {
        max-width: none;
        margin: 0;
        font-size: 1.25rem;
        letter-spacing: -0.02em;
    }

    .hub-auth-copy,
    .hub-auth-list {
        display: none;
    }

    .hub-auth-panel {
        padding: 1.5rem;
    }

    .hub-auth-icon {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hub-data-table-wrap {
        overflow-x: auto;
        border: 1px solid var(--hub-border);
        background: #fff;
    }

    .hub-data-table { display: table; width: 100%; min-width: 680px; }
    .hub-data-table thead { display: table-header-group; position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
    .hub-data-table tbody { display: table-row-group; }
    .hub-data-table tr { display: table-row; width: auto; margin: 0; border: 0; box-shadow: none; }
    .hub-data-table th,
    .hub-data-table td { display: table-cell; width: auto; }
    .hub-data-table tbody td { min-height: 0; padding: 0.8rem 0.9rem; border-top: 1px solid #edf1f5; }
    .hub-data-table tbody td::before { content: none; }
}

@media (max-width: 575.98px) {
    .topbar-control-prefix,
    .topbar-user-label {
        display: none;
    }

    .topbar-user {
        justify-content: center;
        width: 44px;
        padding-right: 0.35rem;
        padding-left: 0.35rem;
    }

    .hub-content {
        padding: 0.85rem;
    }

    .hub-page-header h1 {
        font-size: 1.45rem;
    }

    .hub-kpi {
        padding: 0.85rem;
    }

    .hub-kpi-value {
        font-size: 1.3rem;
    }

    .hub-action-row {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .hub-action-open {
        grid-column: 2;
    }

    .hub-workspace-row {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .hub-workspace-row .btn {
        grid-column: 2;
        justify-self: start;
    }

    .hub-workspace-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .hub-auth-page {
        align-items: flex-start;
        padding: 0.75rem;
    }

    .hub-auth-brand {
        padding: 0.85rem 1rem;
    }

    .hub-auth-badge {
        padding: 0.35rem 0.55rem;
        font-size: 0.66rem;
    }

    .hub-auth-title {
        font-size: 1rem;
    }

    .hub-auth-panel {
        padding: 1.1rem;
    }

    .hub-auth-panel h1 {
        font-size: 1.3rem;
    }

    .hub-auth-panel > p {
        margin-bottom: 1rem;
    }

    .hub-auth-help {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 640px) {
    .sidebar-toggle-label {
        display: none;
    }
}

/* ==========================================================
   HUB DASHBOARD WIDGETS
   ========================================================== */
.hub-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hub-stat-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.hub-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    border-color: #cbd5e1;
}

.hub-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.hub-stat-icon.blue,
.hub-module-icon.blue { background: #dbeafe; color: #2563eb; }
.hub-stat-icon.green,
.hub-module-icon.green { background: #dcfce7; color: #16a34a; }
.hub-stat-icon.purple,
.hub-module-icon.purple { background: #ede9fe; color: #7c3aed; }
.hub-stat-icon.amber,
.hub-module-icon.amber { background: #fef3c7; color: #d97706; }
.hub-stat-icon.red,
.hub-module-icon.red { background: #fee2e2; color: #dc2626; }
.hub-stat-icon.slate,
.hub-module-icon.slate { background: #e2e8f0; color: #475569; }

.hub-stat-info { flex: 1; min-width: 0; }
.hub-stat-label {
    font-size: 0.73rem;
    color: #64748b;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.hub-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.hub-stat-sub { font-size: 0.78rem; color: #94a3b8; margin-top: 0.15rem; }

.hub-section {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.hub-section-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hub-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hub-section-title i { color: #64748b; }
.hub-section-body { padding: 1.25rem; }

.hub-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.hub-module-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #ffffff;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.hub-module-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hub-module-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.hub-module-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hub-module-content {
    min-width: 0;
    flex: 1;
}

.hub-module-label {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.3rem;
}

.hub-module-summary {
    font-size: 0.87rem;
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

.hub-module-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hub-module-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 600;
}

.hub-module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hub-module-actions .btn {
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 0.75rem;
}
.quick-action {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    text-decoration: none;
    color: #334155;
    font-size: 0.855rem;
    font-weight: 500;
    transition: all 0.15s;
}
.quick-action:hover {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(59,130,246,0.12);
    transform: translateY(-1px);
}
.quick-action i { font-size: 1.1rem; flex-shrink: 0; }

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f8fafc;
}
.activity-item:last-child { border-bottom: none; }
.activity-item-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    color: inherit;
    text-decoration: none;
}
.activity-item-link {
    margin: -0.35rem -0.45rem;
    padding: 0.35rem 0.45rem;
    border-radius: var(--hub-radius-control);
}
.activity-item-link:hover {
    color: inherit;
    background: var(--hub-surface-muted);
}
.activity-item-content .activity-time {
    display: block;
}
.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 0.45rem;
    flex-shrink: 0;
}
.activity-dot.blue   { background: #3b82f6; }
.activity-dot.green  { background: #22c55e; }
.activity-dot.purple { background: #8b5cf6; }

.activity-text { font-size: 0.845rem; color: #334155; line-height: 1.4; }
.activity-time { font-size: 0.75rem; color: #94a3b8; margin-top: 0.1rem; }

/* ==========================================================
   GENERAL OVERRIDES FOR EMBEDDED APP CONTENT
   ========================================================== */
.hub-content .card { border-radius: 0.625rem; border-color: #e2e8f0; }
.hub-content .table { font-size: 0.875rem; }

.hub-content > .container,
.hub-content > .container-fluid {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.hub-content .ag-theme-alpine { font-family: var(--font-family); }
.hub-content .alert { border-radius: 0.5rem; }

.hub-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}
.hub-page-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.hub-page-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.hub-page-hero {
    position: relative;
    overflow: hidden;
    padding: 1.6rem 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dbe4f0;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.hub-page-hero::after {
    content: '';
    position: absolute;
    right: -42px;
    bottom: -54px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: transparent;
    pointer-events: none;
}

.hub-page-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.hub-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hub-page-summary {
    max-width: 720px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.hub-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.hub-page-actions .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.6rem 0.95rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.hub-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid #dbe4f0;
    border-radius: 0.9rem;
    background: #fff;
}

.hub-banner i {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.hub-banner strong {
    display: block;
    margin-bottom: 0.15rem;
}

.hub-banner p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.hub-banner.warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.hub-banner.warning i,
.hub-banner.warning strong,
.hub-banner.warning a {
    color: #b45309;
}

.hub-banner.danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.hub-banner.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.hub-banner.danger i,
.hub-banner.danger strong,
.hub-banner.danger p {
    color: #b91c1c;
}

.hub-banner.success i,
.hub-banner.success strong,
.hub-banner.success p {
    color: #166534;
}

.hub-section-meta {
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.hub-log-viewer {
    padding: 1rem;
    border-radius: 0.85rem;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.65;
    max-height: 420px;
    overflow-y: auto;
}

.hub-log-line {
    display: block;
    padding: 0.3rem 0.45rem;
    border-radius: 0.45rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.hub-log-line + .hub-log-line {
    margin-top: 0.2rem;
}

.hub-log-line.info {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.08);
}

.hub-log-line.success {
    color: #86efac;
    background: rgba(34, 197, 94, 0.08);
}

.hub-log-line.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
}

.hub-empty-state {
    padding: 2rem 1.2rem;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 0.9rem;
    background: #ffffff;
}

.hub-empty-state i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 1.25rem;
}

.hub-empty-state h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.hub-empty-state p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.hub-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #121b2d;
}

.hub-auth-shell {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(18px);
}

.hub-auth-brand {
    padding: 2.4rem;
    color: #e2e8f0;
    background: #14213e;
}

.hub-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-auth-title {
    margin: 1.2rem 0 0.65rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
}

.hub-auth-copy {
    margin: 0;
    max-width: 32rem;
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.7;
}

.hub-auth-list {
    display: grid;
    gap: 0.85rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.hub-auth-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #dbeafe;
    font-size: 0.92rem;
}

.hub-auth-list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.hub-auth-panel {
    padding: 2.2rem;
    background: #fff;
}

.hub-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: #2563eb;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.hub-auth-panel h1 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
}

.hub-auth-panel p {
    color: #64748b;
    margin-bottom: 1.4rem;
}

.hub-auth-meta {
    margin: 0 0 1.35rem;
    padding: 0.95rem 1rem;
    border: 1px solid #dbeafe;
    border-radius: 0.95rem;
    background: #f6f9ff;
}

.hub-auth-meta-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-auth-meta strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #0f172a;
    font-size: 0.98rem;
}

.hub-auth-meta p {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.55;
}

.hub-auth-panel .form-label {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #334155;
}

.hub-auth-panel .form-control {
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid #cbd5e1;
}

.hub-auth-panel .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.hub-auth-panel .alert {
    border-radius: 0.95rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
}

.hub-auth-submit {
    width: 100%;
    border: none;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    font-weight: 700;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.18);
}

.hub-auth-submit:hover,
.hub-auth-submit:focus {
    color: #fff;
    background: #1d4ed8;
}

.hub-auth-help {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.6;
}

.hub-auth-help i {
    color: #2563eb;
    margin-top: 0.1rem;
}

@media (max-width: 991.98px) {
    .hub-page-hero {
        padding: 1.35rem;
    }

    .hub-auth-shell {
        grid-template-columns: 1fr;
    }

    .hub-auth-brand,
    .hub-auth-panel {
        padding: 1.6rem;
    }
}

.hub-split-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.hub-split-sidebar,
.hub-split-main > .hub-section,
.hub-split-main > .hub-banner {
    margin-bottom: 1rem;
}

.hub-split-sidebar {
    padding: 1rem;
    border: 1px solid #dbe4f0;
    border-radius: 0.95rem;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.hub-nav-group + .hub-nav-group {
    margin-top: 1rem;
}

.hub-nav-group-title {
    margin: 0 0 0.55rem;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.hub-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.hub-nav-link-pill {
    display: block;
    padding: 0.65rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    text-decoration: none;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.16s;
}

.hub-nav-link-pill:hover {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.hub-nav-link-pill.active {
    color: #0f172a;
    background: #dbeafe;
    border-color: #93c5fd;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.hub-form-stack {
    display: grid;
    gap: 1rem;
}

.hub-form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
}

.hub-select,
.hub-input,
.hub-search-input {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.78rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
}

.hub-select:focus,
.hub-input:focus,
.hub-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.hub-field-note {
    margin: 0.45rem 0 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.55;
}

.hub-field-note strong {
    color: #334155;
}

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

.hub-form-grid.single {
    grid-template-columns: 1fr;
}

.hub-inline-code {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.8rem;
}

.hub-output-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.hub-output-title.success {
    color: #166534;
}

.hub-output-title.error {
    color: #b91c1c;
}

.hub-output-panel {
    padding: 1rem;
    border: 1px solid #dbe4f0;
    border-radius: 0.9rem;
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.hub-sticky-sidebar {
    position: sticky;
    top: calc(var(--topbar-height) + 1rem);
}

.hub-status-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hub-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #fff;
}

.hub-status-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: #334155;
    font-size: 0.87rem;
    font-weight: 600;
}

.hub-status-label i {
    color: #64748b;
}

.hub-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hub-status-pill.ready {
    background: #dcfce7;
    color: #166534;
}

.hub-status-pill.pending {
    background: #fef3c7;
    color: #b45309;
}

.hub-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.hub-settings-actions-copy {
    color: #64748b;
    font-size: 0.85rem;
}

.hub-info-callout {
    padding: 0.95rem 1rem;
    border: 1px solid #dbeafe;
    border-radius: 0.9rem;
    background: #f8fbff;
    color: #334155;
    font-size: 0.85rem;
    line-height: 1.65;
}

.hub-info-callout strong {
    color: #1d4ed8;
}

.hub-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
}

.hub-provider-option {
    position: relative;
}

.hub-provider-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hub-provider-card {
    display: block;
    height: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid #dbe4f0;
    border-radius: 0.95rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.18s;
}

.hub-provider-card strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #0f172a;
}

.hub-provider-card span {
    color: #64748b;
    font-size: 0.8rem;
}

.hub-provider-option input[type="radio"]:checked + .hub-provider-card {
    border-color: #60a5fa;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.hub-provider-option input[type="radio"]:focus + .hub-provider-card,
.hub-provider-card:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.hub-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.hub-feedback-panel {
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid #dbe4f0;
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.hub-feedback-panel.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.hub-feedback-panel.danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.hub-feedback-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.hub-feedback-panel.success .hub-feedback-head,
.hub-feedback-panel.success .hub-feedback-body {
    color: #166534;
}

.hub-feedback-panel.danger .hub-feedback-head,
.hub-feedback-panel.danger .hub-feedback-body {
    color: #b91c1c;
}

.hub-feedback-body {
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 0.84rem;
}

.hub-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.hub-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    flex: 1;
    min-width: min(100%, 320px);
}

.hub-search-form .hub-search-input {
    flex: 1;
}

.hub-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
}

.hub-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hub-legend-dot {
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 999px;
}

.hub-summary-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.84rem;
}

.hub-data-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.hub-data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.hub-data-table thead th {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.hub-data-table tbody td {
    padding: 1rem;
    border-top: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.6;
    vertical-align: top;
}

.hub-data-table tbody tr:first-child td {
    border-top: none;
}

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

.hub-cell-strong {
    font-weight: 700;
    color: #0f172a;
}

.hub-cell-muted {
    color: #64748b;
}

.hub-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hub-pill.info {
    background: #e0f2fe;
    color: #0369a1;
}

.hub-pill.success {
    background: #dcfce7;
    color: #166534;
}

.hub-pill.warning {
    background: #ffedd5;
    color: #c2410c;
}

.hub-pill.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.hub-details {
    font-size: 0.84rem;
    color: #0f172a;
}

.hub-details summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    color: #2563eb;
    font-weight: 600;
    list-style: none;
}

.hub-details summary::-webkit-details-marker {
    display: none;
}

.hub-details summary::after {
    content: '▼';
    color: #94a3b8;
    font-size: 0.68rem;
}

.hub-details[open] summary::after {
    content: '▲';
}

.hub-details pre {
    margin: 0.75rem 0 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #f8fafc;
    color: #0f172a;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 250px;
    overflow-y: auto;
}

.hub-log-table {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.hub-log-entry-row {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.79rem;
    line-height: 1.7;
}

.hub-log-entry-row:last-child {
    border-bottom: none;
}

.hub-log-entry-row:hover {
    background: #f8fafc;
}

.hub-log-entry-accent {
    width: 0.42rem;
    flex-shrink: 0;
}

.hub-log-entry-body {
    flex: 1;
    padding: 0.9rem 1rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.hub-log-entry-body.info {
    color: #334155;
}

.hub-log-entry-body.warning {
    color: #b45309;
}

.hub-log-entry-body.error {
    color: #b91c1c;
}

.hub-log-entry-body.adult {
    color: #c2410c;
}

.hub-log-entry-accent.info,
.hub-legend-dot.info {
    background: #94a3b8;
}

.hub-log-entry-accent.warning,
.hub-legend-dot.warning {
    background: #f59e0b;
}

.hub-log-entry-accent.error,
.hub-legend-dot.error {
    background: #ef4444;
}

.hub-log-entry-accent.adult,
.hub-legend-dot.adult {
    background: #f97316;
}

.hub-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
}

.hub-pagination a,
.hub-pagination span {
    padding: 0.45rem 0.78rem;
    border: 1px solid #d1d5db;
    border-radius: 0.7rem;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
}

.hub-pagination a:hover {
    background: #f8fafc;
}

.hub-pagination .current {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}

.hub-pagination .disabled {
    color: #cbd5e1;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .hub-data-table-wrap {
        overflow: visible;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .hub-data-table,
    .hub-data-table thead,
    .hub-data-table tbody,
    .hub-data-table tr,
    .hub-data-table th,
    .hub-data-table td {
        display: block;
        width: 100%;
    }

    .hub-data-table {
        min-width: 0;
    }

    .hub-data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .hub-data-table tbody tr {
        margin-bottom: 0.9rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.95rem;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .hub-data-table tbody td {
        min-height: 3.35rem;
        padding: 0.85rem 1rem 0.85rem 46%;
        border-top: 1px solid #f1f5f9;
        position: relative;
    }

    .hub-data-table tbody td:first-child {
        border-top: none;
    }

    .hub-data-table tbody td::before {
        content: attr(data-label);
        position: absolute;
        top: 0.85rem;
        left: 1rem;
        width: calc(42% - 1rem);
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
}

@media (max-width: 991.98px) {
    .hub-split-layout {
        grid-template-columns: 1fr;
    }

    .hub-sticky-sidebar {
        position: static;
    }

    .hub-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Final cascade lock for the shared remediation contracts. */
.hub-content .hub-page-shell {
    max-width: 1240px;
}

.hub-content .hub-section {
    border-color: var(--hub-border);
    border-radius: var(--hub-radius-surface);
    box-shadow: none;
}

.hub-content .hub-section-header {
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom-color: var(--hub-border);
}

.hub-content .hub-section-body {
    padding: 1rem;
}

.hub-content .hub-page-actions .btn {
    min-height: 2.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: var(--hub-radius-control);
    box-shadow: none;
}

.hub-content .hub-status-list {
    gap: 0;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-surface);
    background: var(--hub-surface);
    overflow: hidden;
}

.hub-content .hub-status-item {
    min-height: 3.2rem;
    padding: 0.7rem 0.9rem;
    border: 0;
    border-top: 1px solid var(--hub-border);
    border-radius: 0;
}

.hub-content .hub-status-item:first-child {
    border-top: 0;
}

.hub-auth-page {
    min-height: 100dvh;
    padding: 1rem;
    background: #121b2d;
}

.hub-auth-shell {
    max-width: 920px;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 390px);
    border-radius: var(--hub-radius-surface);
    background: #fff;
    box-shadow: 0 22px 55px rgba(2, 6, 23, 0.34);
    backdrop-filter: none;
}

.hub-auth-brand {
    padding: 2rem;
    background: #14213e;
}

.hub-auth-title {
    max-width: 12ch;
    font-size: clamp(2rem, 3.5vw, 2.55rem);
}

.hub-auth-panel {
    padding: 2rem;
}

.hub-auth-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.8rem;
    border-radius: var(--hub-radius-surface);
    background: var(--accent);
    box-shadow: none;
}

.hub-auth-meta,
.hub-auth-panel .alert {
    border-radius: var(--hub-radius-surface);
    background: #f6f9ff;
}

.hub-auth-panel .form-control {
    min-height: 2.9rem;
    padding: 0.65rem 0.8rem;
    border-radius: var(--hub-radius-control);
}

.hub-auth-submit,
.hub-auth-submit:hover,
.hub-auth-submit:focus {
    min-height: 2.9rem;
    padding: 0.65rem 1rem;
    border-radius: var(--hub-radius-control);
    color: #fff;
    background: var(--accent);
    box-shadow: none;
}

body.sidebar-collapsed .sidebar-apps-label {
    display: none;
}

@media (max-width: 991.98px) {
    .hub-auth-shell {
        max-width: 720px;
        grid-template-columns: 1fr;
    }

    .hub-auth-brand {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }

    .hub-auth-title {
        max-width: none;
        margin: 0;
        font-size: 1.25rem;
        letter-spacing: -0.02em;
    }

    .hub-auth-copy,
    .hub-auth-list {
        display: none;
    }

    .hub-auth-panel {
        padding: 1.5rem;
    }

    .hub-auth-icon {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hub-auth-page {
        align-items: flex-start;
        padding: 0;
    }

    .hub-auth-shell {
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .hub-auth-brand {
        padding: 0.8rem 1rem;
    }

    .hub-auth-badge,
    .hub-auth-copy,
    .hub-auth-list {
        display: none;
    }

    .hub-auth-panel {
        padding: 1.1rem 1rem 1.25rem;
    }

    .hub-auth-panel h1 {
        font-size: 1.3rem;
    }

    .hub-auth-panel > p {
        margin-bottom: 1rem;
    }

    .hub-auth-help {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .hub-data-table-wrap {
        overflow-x: auto;
        border: 1px solid var(--hub-border);
        background: #fff;
        box-shadow: none;
    }

    .hub-data-table {
        display: table;
        width: 100%;
        min-width: 680px;
    }

    .hub-data-table thead {
        display: table-header-group;
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
    }

    .hub-data-table tbody { display: table-row-group; }
    .hub-data-table tr { display: table-row; width: auto; margin: 0; border: 0; box-shadow: none; }
    .hub-data-table th,
    .hub-data-table td { display: table-cell; width: auto; }
    .hub-data-table tbody td { min-height: 0; padding: 0.8rem 0.9rem; border-top: 1px solid #edf1f5; }
    .hub-data-table tbody td::before { content: none; }
}
