﻿html {
    --ant-primary-color: #95c01f;
    --ant-primary-color-hover: #a8cf3a;
    --ant-primary-color-active: #7a9c19;
    --ant-primary-color-outline: rgba(149, 192, 31, 0.2);
    --ant-primary-1: #f1f7e1;
    --ant-primary-2: #e2efc0;
    --ant-primary-3: #cfe395;
    --ant-primary-4: #bad86a;
    --ant-primary-5: #a8cf3a;
    --ant-primary-6: #95c01f;
    --ant-primary-7: #7a9c19;
    --ant-success-color: #95c01f;
    --ant-error-color: #e4483f;
    --ant-warning-color: #e8a431;
    --ant-info-color: #312783;
}

body {
    font-family:
        "Montserrat",
        -apple-system,
        "Segoe UI",
        sans-serif;
    background: #f2f4f9;
    font-size: 12px;
}

.sims-shell {
    min-height: 100vh;
}

.sims-sider {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* site.css paints .ant-layout-sider-children solid midnightblue at height:100%.
   Once an expanded group makes the nav taller than the viewport, that solid block
   ends mid-scroll and the sider's gradient shows below it as a hard seam.
   Let the children be transparent so the sider gradient shows through everywhere. */
.sims-sider .ant-layout-sider-children {
    background: transparent;
    height: auto;
    min-height: 100%;
}

.sims-nav-list,
.sims-nav-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sims-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sims-nav-item,
.sims-nav-group,
.sims-nav-child {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.sims-nav-item,
.sims-nav-group {
    gap: 10px;
    min-height: 42px;
    padding: 9px 14px 9px 42px;
    border-radius: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}
.sims-nav-item,
.sims-nav-group {
    padding-left: 20px;
}
.sims-nav-group {
    background: rgba(255, 255, 255, 0.06);
}
.sims-nav-group > span:first-child {
    padding-left: -15px;
}

.sims-nav-item:hover,
.sims-nav-group:hover {
    background: rgba(255, 255, 255, 0.11);
}

.sims-nav-item.is-selected {
    background: #95c01f;
    color: #241d63;
}

.sims-nav-chevron {
    /* flex: none; */
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.25s;
    margin-left: auto;
}

.sims-nav-group.is-open .sims-nav-chevron {
    transform: rotate(180deg);
}

.sims-nav-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}

.sims-nav-panel.is-open {
    grid-template-rows: 1fr;
}

.sims-nav-children {
    overflow: hidden;
}

.sims-nav-children li:first-child {
    padding-top: 4px;
}

.sims-nav-child {
    gap: 9px;
    padding: 8px 14px 8px 30px;
    border-radius: 9px;
    color: #c4c0e4;
    font-size: 13px;
    font-weight: 500;
}

.sims-nav-child::before {
    content: "";
    flex: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7d78b3;
    transition: background-color 0.2s;
}

.sims-nav-child:hover,
.sims-nav-child.is-selected {
    color: #fff;
}

.sims-nav-child.is-selected::before {
    background: #95c01f;
}

.sims-nav button:focus-visible {
    outline: 2px solid #95c01f;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .sims-nav-panel,
    .sims-nav-chevron {
        transition: none;
    }
}

.sims-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

.sims-nav-toggle {
    display: none;
}

@media (max-width: 991px) {
    .sims-sider {
        position: fixed;
        z-index: 20;
    }

    .sims-nav-toggle {
        display: inline-block;
    }

    .sims-code {
        display: none;
    }

    .sims-content {
        padding: 16px !important;
    }
}

@media (max-width: 575px) {
    .sims-help {
        display: none;
    }
}
