﻿.st-owner-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    background: radial-gradient(circle at top left, rgba(71, 132, 255, 0.14), transparent 28%), linear-gradient(180deg, #07111c 0%, #0b1422 100%);
    color: #eaf1fb;
}

.st-owner-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1040;
}

    .st-owner-mobile-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

.st-owner-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 20px 16px 24px;
    border-right: 1px solid rgba(255,255,255,0.08);
    background: rgba(7, 12, 20, 0.88);
    backdrop-filter: blur(16px);
}

.st-owner-sidebar-mobile-top {
    display: none;
}

.st-owner-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.st-owner-brand {
    margin-bottom: 16px;
}

.st-owner-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.st-owner-logo {
    width: 225px;
    height: 77px;
    margin-left: 17px;
    border-radius: 3px;
}

.st-owner-workspace-card {
    margin-bottom: 18px;
    padding: 14px 14px 13px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.st-owner-workspace-label {
    color: #8fb6ff;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 6px;
}

.st-owner-workspace-name {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
}

.st-owner-workspace-slug {
    color: rgba(234,241,251,0.62);
    font-size: .84rem;
    margin-top: 4px;
    word-break: break-word;
}

.st-owner-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(10, 18, 31, 0.78);
    backdrop-filter: blur(12px);
}

.st-owner-topbar-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.st-owner-topbar-menu {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #fff;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.2rem;
}

    .st-owner-topbar-menu:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.18);
    }

.st-owner-sidebar-close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

    .st-owner-sidebar-close:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.18);
    }

.st-owner-topbar-kicker {
    color: #8fb6ff;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.st-owner-topbar-title {
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 2.05rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.01em;
}

.st-owner-topbar-subtitle {
    margin-top: 7px;
    color: rgba(234,241,251,0.72);
    font-size: .98rem;
    font-weight: 600;
}

.st-owner-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.st-owner-topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #eaf1fb;
    text-decoration: none;
    font-weight: 750;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

    .st-owner-topbar-link:hover {
        color: #fff;
        background: rgba(71,132,255,.14);
        border-color: rgba(71,132,255,.34);
        transform: translateY(-1px);
    }

.st-owner-content {
    min-width: 0;
    padding: 28px;
}

.st-owner-nav {
    display: grid;
    gap: 8px;
}

.st-owner-nav-link,
.st-owner-nav-toggle,
.st-owner-subnav-link {
    width: 100%;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.st-owner-nav-link,
.st-owner-nav-toggle {
    min-height: 46px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(234,241,251,0.82);
    font-weight: 750;
}

    .st-owner-nav-link > i,
    .st-owner-nav-toggle-main > i,
    .st-owner-subnav-link > i {
        width: 18px;
        text-align: center;
        font-size: 1rem;
        flex: 0 0 auto;
    }

    .st-owner-nav-link > span,
    .st-owner-nav-toggle-main > span,
    .st-owner-subnav-link > span {
        min-width: 0;
        white-space: normal;
        line-height: 1.25;
    }

.st-owner-nav-link {
    justify-content: flex-start;
}

    .st-owner-nav-link:hover,
    .st-owner-nav-toggle:hover,
    .st-owner-subnav-link:hover {
        color: #fff;
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.08);
    }

    .st-owner-nav-link.active,
    .st-owner-nav-toggle.active,
    .st-owner-subnav-link.active {
        color: #fff;
        background: linear-gradient(180deg, rgba(71,132,255,.2), rgba(71,132,255,.11));
        border-color: rgba(71,132,255,.34);
        box-shadow: 0 12px 28px rgba(0,0,0,.18);
    }

.st-owner-nav-group {
    display: grid;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
}

.st-owner-nav-toggle {
    border: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}

.st-owner-nav-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    min-width: 0;
    flex: 1 1 auto;
}

.st-owner-nav-chevron {
    font-size: .85rem;
    opacity: .75;
    flex: 0 0 auto;
}

.st-owner-nav-pos {
    color: #38bdf8;
    font-weight: 850;
    border-color: rgba(56,189,248,0.20);
}

    .st-owner-nav-pos:hover {
        color: #7dd3fc;
    }

    .st-owner-nav-pos.active {
        color: #e0f2fe;
    }

.st-owner-subnav-wrap {
    display: grid;
    gap: 6px;
    padding-left: 10px;
    margin-top: 2px;
}

.st-owner-subnav-link {
    min-height: 38px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: rgba(234,242,255,0.88);
    font-size: .9rem;
    font-weight: 800;
}

    .st-owner-subnav-link:hover {
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.12);
    }

    .st-owner-subnav-link.active {
        background: rgba(56,189,248,0.10);
        border-color: rgba(56,189,248,0.25);
        box-shadow: none;
    }

@media (max-width: 1100px) {
    .st-owner-topbar-link-utility {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .st-owner-shell {
        grid-template-columns: 1fr;
    }

    .st-owner-topbar-menu {
        display: inline-flex;
    }

    .st-owner-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(88vw, 340px);
        max-width: 340px;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-102%);
        transition: transform .22s ease;
        overflow-y: auto;
        box-shadow: 0 18px 50px rgba(0,0,0,.42);
        border-right: 1px solid rgba(255,255,255,0.08);
        border-bottom: 0;
    }

        .st-owner-sidebar.is-open {
            transform: translateX(0);
        }

    .st-owner-sidebar-mobile-top {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 8px;
    }

    .st-owner-main {
        min-width: 0;
    }

    .st-owner-topbar {
        position: sticky;
        top: 0;
        z-index: 1030;
        padding: 20px 18px 16px;
        backdrop-filter: blur(10px);
    }

    .st-owner-content {
        padding: 18px;
    }

    .st-owner-nav {
        gap: 10px;
    }

    .st-owner-nav-link,
    .st-owner-nav-toggle {
        min-height: 52px;
        padding: 13px 14px;
        border-radius: 16px;
    }

    .st-owner-subnav-wrap {
        padding-left: 8px;
    }

    .st-owner-subnav-link {
        min-height: 40px;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: .9rem;
    }

    .st-owner-topbar-right {
        gap: 8px;
    }
}

@media (max-width: 767.98px) {
    .st-owner-topbar {
        gap: 12px;
        flex-wrap: wrap;
    }

    .st-owner-topbar-left {
        width: 100%;
    }

    .st-owner-topbar-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .st-owner-topbar-link {
        font-size: .92rem;
    }
}

@media (max-width: 575.98px) {
    .st-owner-topbar-link-utility {
        display: inline-flex;
    }

    .st-owner-topbar-right {
        display: none;
    }

    .st-owner-nav-link,
    .st-owner-nav-toggle {
        padding: 12px 12px;
        gap: 10px;
    }

    .st-owner-nav-toggle-main {
        gap: 10px;
    }

    .st-owner-subnav-wrap {
        padding-left: 4px;
    }

    .st-owner-subnav-link {
        padding: 8px 9px;
        font-size: .88rem;
    }
}

.st-owner-topbar-more {
    display: none;
    position: relative;
}

.st-owner-topbar-more-btn {
    gap: 8px;
}

.st-owner-topbar-more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(10, 18, 31, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0,0,0,.32);
    display: grid;
    gap: 6px;
    z-index: 1060;
}

.st-owner-topbar-more-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #eaf1fb;
    text-decoration: none;
    font-weight: 750;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
    border: 1px solid transparent;
}

    .st-owner-topbar-more-link:hover {
        color: #fff;
        background: rgba(71,132,255,.14);
        border-color: rgba(71,132,255,.24);
    }

@media (max-width: 1100px) {
    .st-owner-topbar-link-utility {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .st-owner-topbar-right {
        display: flex;
        width: auto;
        margin-left: auto;
    }

    .st-owner-topbar-link-utility,
    .st-owner-topbar-link-desktop {
        display: none;
    }

    .st-owner-topbar-more {
        display: block;
    }
}

/* POS Topbar CTA */
.st-owner-topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0d6efd;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.25);
    transition: all 0.15s ease;
}

    .st-owner-topbar-cta:hover {
        background: #0b5ed7;
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(13, 110, 253, 0.35);
    }

/* Mobile POS highlight */
.st-owner-topbar-more-link-cta {
    background: rgba(13, 110, 253, 0.08);
    border-radius: 8px;
    font-weight: 600;
}

.st-owner-nav-toggle-main span,
.st-owner-nav-link span {
    white-space: nowrap;
}

.st-owner-nav-toggle-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.st-owner-nav-link,
.st-owner-nav-toggle {
    font-size: 0.95rem;
}

.st-owner-nav-section-label {
    margin: 16px 10px 8px;
    padding: 0 2px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(234,242,255,.45);
    user-select: none;
}

    .st-owner-nav-section-label:first-child {
        margin-top: 4px;
    }

.st-owner-nav-toggle-main span,
.st-owner-nav-link span,
.st-owner-subnav-link span {
    white-space: nowrap;
}

.st-owner-nav-group + .st-owner-nav-section-label {
    margin-top: 7px;
}

.st-owner-nav-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 10px 8px;
    padding: 0 2px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    /* more muted (less white) */
    color: rgba(234,242,255,.38);
    user-select: none;
}

    /* divider line to the right */
    .st-owner-nav-section-label::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient( to right, rgba(255,255,255,0.12), rgba(255,255,255,0.04) );
        margin-left: 6px;
    }

/* MOBILE SIDEBAR TWEAKS */
@media (max-width: 768px) {

    .st-owner-nav-section-label {
        margin: 14px 8px 6px;
        font-size: .66rem;
        /* slightly more visible on mobile */
        color: rgba(234,242,255,.42);
    }

        .st-owner-nav-section-label::after {
            margin-left: 8px;
            /* slightly stronger so it shows on smaller screens */
            background: linear-gradient( to right, rgba(255,255,255,0.16), rgba(255,255,255,0.05) );
        }
}