:root {
    
    /*Light*/
    --zs-bg: #f3f4f6;
    --zs-bg-hover: #e7e9ec;
    --zs-bg-active: #dde1e6;
    --zs-text: #2c3137;
    --zs-panel-bg: #ffffff;
    --zs-panel-text: #2c3137;
    --zs-border: #d6dbe1;
    --zs-panel-hover: #f3f4f6;
}

.zlayout {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    min-height: 100vh;
    gap: 0;
}

.zpage {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.zmain {
    min-width: 0;
    padding: 1rem;
    flex: 1;
}

.zheader {
    padding: 1rem 1rem 0 1rem;
}

.zlogo-wrap {
    text-align: center;
}

.zpage-logo {
    display: inline-block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 110px;
}


.zfooter {
    padding: 0 1rem 1rem 1rem;
}

.zsidebar,
.zsidebar * {
    box-sizing: border-box;
}

.zsidebar {
    background: var(--zs-bg);
    color: var(--zs-text);
    border-radius: 0;
    min-height: 100vh;
    position: sticky;
    top: 0;
    overflow: visible;
    font-size: 0.92rem;
}

.zsidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid var(--zs-border);
}

.zsidebar-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: var(--zs-text);
    text-decoration: none;
}

.zsidebar-head:hover,
.zsidebar-head:focus {
    color: var(--zs-text);
    text-decoration: none;
}

.zsidebar-logo {
    display: block;
    max-height: 42px;
    width: auto;
    flex: 0 0 auto;
}

.zsidebar-brand {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zsidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.3rem 0.5rem;
    min-height: 0;
    width: auto;
    line-height: 1;
    border: 1px solid var(--zs-border);
    border-radius: 0.3rem;
    background: transparent;
    color: var(--zs-text);
    box-shadow: none;
}

.zsidebar-toggle:hover,
.zsidebar-toggle:focus {
    background: var(--zs-bg-hover);
}

.zsidebar-toggle .bi-list {
    font-size: 1.2rem;
    line-height: 1;
}

.zsidebar-items {
    display: grid;
    gap: 0.2rem;
    padding: 0.5rem;
}

.zsidebar-items > a,
.zsidebar-dd-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.65rem;
    min-height: auto;
    border: 0;
    border-radius: 0.3rem;
    background: transparent;
    color: var(--zs-text);
    text-decoration: none;
    text-align: left;
    font: inherit;
    line-height: 1.15;
    box-shadow: none;
}

.zsidebar-dd-btn {
    justify-content: space-between;
}

.zsidebar-items > a span,
.zsidebar-dd-btn span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.zsidebar-items > a:hover,
.zsidebar-items > a:focus,
.zsidebar-dd-btn:hover,
.zsidebar-dd-btn:focus {
    background: var(--zs-bg-hover);
    color: var(--zs-text);
    text-decoration: none;
}

.zsidebar-items > a.active {
    background: var(--zs-bg-active);
    font-weight: 600;
}

.zsidebar-dd {
    display: grid;
    gap: 0.15rem;
}

.zsidebar-dd-btn::after {
    content: "▾";
    font-size: 1.25rem;
    line-height: 1;
    margin-left: auto;
}

.zsidebar-dd.open .zsidebar-dd-btn::after {
    content: "▴";
}

.zsidebar-dd-panel {
    display: none;
    margin: 0;
    padding: 0.25rem;
    border-radius: 0.35rem;
    background: var(--zs-panel-bg);
}

.zsidebar-dd.open .zsidebar-dd-panel {
    display: grid;
    gap: 0.1rem;
}

.zsidebar-dd-panel a {
    display: block;
    padding: 0.45rem 0.55rem 0.45rem 1.6rem;
    border-radius: 0.25rem;
    color: var(--zs-panel-text);
    text-decoration: none;
    line-height: 1.15;
}

.zsidebar-dd-panel a:hover,
.zsidebar-dd-panel a:focus {
    background: var(--zs-panel-hover);
    color: var(--zs-panel-text);
    text-decoration: none;
}

.zcontent {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

/* Small screens */
@media (max-width: 899px) {
    .zlayout {
        grid-template-columns: 3.5rem minmax(0, 1fr);
    }

    .zsidebar {
        width: 3.5rem;
        transition: width 0.2s ease;
        overflow: hidden;
        z-index: 100;
    }

    .zsidebar-top {
        justify-content: center;
        padding: 0.65rem 0.4rem;
    }

    .zsidebar-head {
        display: none;
    }

    .zsidebar-toggle {
        display: inline-flex;
    }

    .zsidebar-items {
        display: none;
        padding: 0.5rem;
    }

    .zsidebar.open {
        width: 16rem;
        overflow: visible;
    }

    .zsidebar.open .zsidebar-top {
        justify-content: space-between;
        padding: 0.75rem 0.8rem;
    }

    .zsidebar.open .zsidebar-head {
        display: flex;
    }

    .zsidebar.open .zsidebar-items {
        display: grid;
    }
}