/* Authenticated layout from Velizen CRM, adapted to the CEE routes. */
@font-face {
    font-family:Poppins;
    src:url('/assets/fonts/poppins-400.ttf') format('truetype');
    font-weight:400;
    font-display:swap;
}

@font-face {
    font-family:Poppins;
    src:url('/assets/fonts/poppins-500.ttf') format('truetype');
    font-weight:500;
    font-display:swap;
}

@font-face {
    font-family:Poppins;
    src:url('/assets/fonts/poppins-600.ttf') format('truetype');
    font-weight:600;
    font-display:swap;
}

@font-face {
    font-family:Poppins;
    src:url('/assets/fonts/poppins-700.ttf') format('truetype');
    font-weight:700;
    font-display:swap;
}

.workspace-page {
    --workspace-header-height:64px;
    --purple:#8d34f2;
    --purple-dark:#7020c8;
    --ink:#0b0f0a;
    --muted:#686773;
    --line:#e9e7ed;
    --lavender:#f3edfd;
    --paper:#f8f9f6;
    --radius:14px;
    background:#f8f9fc;
    color:var(--ink);
    font-family:Poppins,system-ui,sans-serif;
    font-size:14px;
    -webkit-font-smoothing:antialiased;
}

.workspace-layout {
    display:grid;
    grid-template-columns:250px minmax(0,1fr);
    min-height:100dvh;
}

.sidebar {
    --line:#ffffff30;
    background:linear-gradient(165deg,#8139d8 0%,#682ab7 55%,#50228f 100%);
    color:white;
    border-right:1px solid var(--line);
    display:flex;
    flex-direction:column;
    padding:0 12px 24px;
    position:sticky;
    top:0;
    height:100dvh;
    overflow-y:auto;
}

.sidebar-logo {
    display:flex;
    align-items:center;
    height:var(--workspace-header-height);
    flex-shrink:0;
    padding:0 24px;
    margin:0 -12px 18px;
    border-bottom:1px solid var(--line);
}

.sidebar-logo img {
    /* Compensate for the transparent padding in the original logo. */
    width:200px;
    max-width:none;
    height:80px;
    margin:-27px -32px;
    filter:brightness(0) invert(1);
}

.sidebar-logo .sidebar-mark {
    display:none;
}

.sidebar :is(a,summary):focus-visible {
    outline:3px solid white;
    outline-offset:-3px;
}

.workspace-layout.navigation-collapsed {
    grid-template-columns:72px minmax(0,1fr);
}

.navigation-collapsed .sidebar {
    padding:0 10px 24px;
}

.navigation-collapsed .sidebar-logo {
    margin:0 -10px 8px;
    padding:0;
    justify-content:center;
}

.navigation-collapsed .sidebar-logo .sidebar-wordmark {
    display:none;
}

.navigation-collapsed .sidebar-logo .sidebar-mark {
    display:block;
    width:28px;
    height:28px;
    margin:0;
}

.navigation-collapsed .sidebar-close {
    position:static;
    margin:0 auto 12px;
}

.navigation-collapsed .sidebar-close svg {
    transform:rotate(180deg);
}

.navigation-collapsed .nav-item {
    justify-content:center;
    gap:0;
    padding:12px 0;
}

.navigation-collapsed .nav-item > span {
    position:absolute;
    width:1px;
    height:1px;
    margin:-1px;
    padding:0;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
    border:0;
}

.sidebar[hidden],.navigation-toggle[hidden],.sidebar-close[hidden],.sidebar-backdrop[hidden] {
    display:none;
}

.navigation-toggle,.sidebar-close {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    padding:8px;
    border:0;
    border-radius:6px;
    background:transparent;
    color:white;
    flex-shrink:0;
}

.navigation-toggle svg,.sidebar-close svg {
    width:16px;
    height:16px;
}

.navigation-toggle:hover,.sidebar-close:hover {
    background:#ffffff24;
}

.sidebar-close {
    position:absolute;
    top:16px;
    right:12px;
}

.sidebar-close:focus-visible {
    outline:3px solid white;
    outline-offset:2px;
}

.sidebar-backdrop {
    position:fixed;
    inset:0;
    z-index:30;
    border:0;
    background:#15102499;
}

.navigation-modal {
    overflow:hidden;
}

.nav-item {
    display:flex;
    align-items:center;
    gap:12px;
    border-radius:8px;
    padding:13px 14px;
    min-height:46px;
    font-size:11px;
    margin-bottom:4px;
    color:#f4ecff;
    text-decoration:none;
}

.nav-item.active {
    color:#6422aa;
    background:white;
    font-weight:500;
    box-shadow:0 4px 14px #3212591f;
}

.nav-item:not(.active):hover {
    background:#ffffff1a;
    color:white;
}

.nav-item.active:hover {
    background:#f4ecff;
}

.nav-item svg {
    width:18px;
    flex-shrink:0;
}

.workspace-main {
    display:flex;
    flex-direction:column;
    min-width:0;
    container-type:inline-size;
}

.topbar {
    --line:#ffffff26;
    background:#232238;
    color:#faf8ff;
    border-bottom:1px solid #343148;
    height:var(--workspace-header-height);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 44px;
    gap:18px;
}

.breadcrumb {
    font-size:10px;
    color:#c9c3da;
}

.breadcrumb>span {
    color:#948ba9;
    margin:0 14px;
}

.breadcrumb strong {
    font-weight:500;
    color:#faf8ff;
}

.profile {
    display:flex;
    gap:11px;
    align-items:center;
    margin-left:auto;
    min-width:0;
}

.profile > div {
    min-width:0;
}

.avatar {
    background:var(--lavender);
    color:var(--purple-dark);
    border:1px solid #e6d8f9;
    width:36px;
    height:36px;
    flex-shrink:0;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:500;
    font-size:13px;
}

.profile strong,.profile small {
    display:block;
}

.profile strong {
    font-size:11px;
    font-weight:500;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.profile small {
    font-size:9px;
    color:#c9c3da;
    margin-top:3px;
}

.logout-button {
    padding:8px;
    margin-left:8px;
    border:0;
    border-left:1px solid var(--line);
    background:transparent;
    color:#d9d2e9;
    display:flex;
}

.logout-button:hover {
    color:white;
    background:#ffffff12;
}

.topbar button:focus-visible {
    outline-color:white;
}

.workspace-content {
    width:100%;
    max-width:1680px;
    padding:44px;
    margin:0 auto;
    flex:1;
}

.workspace-footer {
    display:flex;
    justify-content:space-between;
    gap:12px;
    border-top:1px solid var(--line);
    padding:20px 44px;
    font-size:9px;
    color:#928b9b;
}

.workspace-page .skip {
    position:fixed;
    z-index:50;
}

.workspace-content h1,
.workspace-content h2 {
    font-weight:600;
    letter-spacing:-.055em;
}

.workspace-content .page-head {
    margin-bottom:35px;
}

.workspace-content .page-head h1 {
    font-size:31px;
    line-height:1.3;
}

.workspace-content .page-head p:not(.eyebrow) {
    font-size:13px;
    margin-top:10px;
}

.workspace-content .table-card {
    border-radius:12px;
}

.workspace-content .table th,
.workspace-content .table td {
    padding-block:11px;
    font-size:12px;
}

.workspace-content .table th,
.workspace-content .table tbody tr:hover {
    background:#f8f7fa;
}

.workspace-content .table th {
    font-weight:500;
}

.workspace-content .table-action {
    font-size:inherit;
    font-weight:600;
}

.workspace-content .space-card {
    border-radius:12px;
}

.workspace-content .space-card:hover {
    background:var(--lavender);
}

.workspace-picker {
    display:flex;
    flex-direction:column;
    min-height:100dvh;
    background:radial-gradient(ellipse at 50% 20%, var(--lavender), #f8f9fc 65%);
}

.workspace-picker-brand {
    display:flex;
    align-items:center;
    flex:none;
    width:136px;
}

.workspace-picker-brand img {
    width:200px;
    max-width:none;
    height:auto;
    margin-inline:-32px;
    filter:brightness(0) invert(1);
}

.workspace-picker .workspace-content {
    max-width:1000px;
    padding-block:clamp(52px, 13vh, 156px) 44px;
}

.workspace-picker .page-head {
    justify-content:center;
    align-items:center;
    text-align:center;
}

.workspace-picker .page-head h1 {
    font-size:clamp(1.75rem, 3.8vw, 2.75rem);
}

.workspace-option {
    gap:12px;
    padding:clamp(20px, 3vw, 30px);
    box-shadow:0 6px 24px #39175d0b;
}

.workspace-option:only-child {
    grid-column:1 / -1;
    justify-self:center;
    width:min(100%, 430px);
}

.workspace-option strong {
    font-size:clamp(1.2rem, 2.3vw, 1.5rem);
}

.workspace-option > svg {
    align-self:flex-end;
    margin-top:auto;
    color:var(--purple-dark);
}

.space-card > .workspace-option-icon {
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    border-radius:10px;
    color:var(--purple-dark);
    background:var(--lavender);
}

.demo-workspace .nav-item {
    font-size:13px;
}

.demo-workspace .demo-card {
    gap:18px;
    padding:clamp(18px, 3cqw, 28px);
}

.demo-card-heading, .demo-workspace .demo-card-footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    color:var(--purple-dark);
    font-weight:600;
}

.demo-card-icon {
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    border-radius:10px;
    color:var(--purple-dark);
    background:var(--lavender);
}

.demo-card .demo-card-icon svg {
    width:24px;
    height:24px;
}

.demo-card strong {
    flex:1;
    font-size:clamp(1.125rem, 2cqw, 1.4rem);
}

.demo-card strong, .demo-session {
    overflow-wrap:anywhere;
}

.demo-session .demo-card-footer {
    margin-top:auto;
}

@media(min-width:1600px) {
    .workspace-content {
        padding:58px;
    }
    .workspace-content .page-head h1 {
        font-size:36px;
    }
}

@media(max-width:1150px) {
    .workspace-layout {
        grid-template-columns:218px minmax(0,1fr);
    }
    .topbar {
        padding:0 28px;
    }
    .workspace-content {
        padding:32px 28px;
    }
    .workspace-footer {
        padding:20px 28px;
    }
    .nav-item {
        font-size:10px;
        gap:9px;
    }
}

@media(max-width:760px) {
    .workspace-layout {
        display:block;
    }
    .sidebar {
        position:relative;
        height:auto;
        padding:0 18px 18px;
        border-right:0;
        border-bottom:1px solid var(--line);
    }
    .navigation-ready .sidebar {
        position:fixed;
        inset:0 auto 0 0;
        width:min(300px,calc(100% - 48px));
        height:100dvh;
        z-index:40;
        box-shadow:12px 0 40px #15102433;
        overscroll-behavior:contain;
    }
    .sidebar-logo {
        margin:0 -18px 12px;
    }
    .sidebar nav {
        display:flex;
        flex-direction:column;
        gap:4px;
    }
    .demo-workspace .sidebar {
        position:sticky;
        z-index:20;
        padding:6px 12px;
    }
    .demo-workspace .sidebar-logo {
        display:none;
    }
    .demo-workspace .sidebar nav {
        flex-direction:row;
        flex-wrap:wrap;
        gap:8px;
    }
    .demo-workspace .nav-item {
        min-height:44px;
    }
    .nav-item {
        font-size:10px;
        margin:0;
        padding:9px 11px;
        min-height:36px;
    }
    .topbar {
        height:auto;
        min-height:var(--workspace-header-height);
        padding:12px;
        gap:12px;
    }
    .navigation-ready .topbar {
        position:sticky;
        top:0;
        z-index:20;
    }
    .navigation-toggle,.sidebar-close {
        width:44px;
        height:44px;
    }
    .sidebar-close {
        top:10px;
    }
    .breadcrumb {
        display:none;
    }
    .profile {
        flex:1;
        min-width:0;
        gap:8px;
    }
    .profile form {
        margin-left:auto;
    }
    .workspace-picker-brand {
        width:auto;
    }
    .workspace-picker-brand img {
        width:28px;
        margin:0;
    }
    .logout-button {
        border:0;
    }
    .workspace-content {
        padding:28px 20px;
    }
    .workspace-content {
        scroll-margin-top:var(--workspace-header-height);
    }
    .workspace-content .page-head {
        margin-bottom:25px;
    }
    .workspace-content .page-head h1 {
        font-size:27px;
    }
    .workspace-content .panel {
        padding:12px;
    }
    .workspace-footer {
        padding:18px 20px;
        font-size:8px;
    }
}

.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
    border:0;
}
