/* Office navigation grouped by activity, and the home page. */

.session-area .current-user {
    margin-left: 6px;
}

.sidebar {
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 18px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
}

.sidebar-nav {
    gap: 2px;
}

.nav-group[hidden] {
    display: none;
}

.nav-group + .nav-group {
    margin-top: 10px;
}

.nav-group-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 6px 10px;
    color: #91a7a9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-group-title:hover {
    color: #d6e1e2;
}

.nav-group-title i {
    font-style: normal;
    font-size: 14px;
    transform: rotate(90deg);
    transition: transform .15s;
}

.nav-group.closed .nav-group-title i {
    transform: rotate(0deg);
}

.nav-group.closed .nav-group-items {
    display: none;
}

.nav-group-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar .nav-item {
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.25;
}

.sidebar .nav-item[hidden] {
    display: none;
}

/* Home page */

.dash-todo {
    margin-bottom: 22px;
}

.dash-todo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    padding: 16px 20px 20px;
}

.todo-line {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid #7fa3a6;
    border-radius: 10px;
}

.todo-line strong {
    font-size: 24px;
}

.todo-line span {
    font-size: 14px;
    line-height: 1.3;
}

.todo-line .btn {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
}

.todo-danger {
    border-left-color: #c84b3c;
}

.todo-danger strong {
    color: #b23a2c;
}

.todo-warning {
    border-left-color: #d79a2b;
}

.dash-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
}

.dash-group h3 {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.metric-link {
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.metric-link:hover,
.metric-link:focus-visible {
    border-color: var(--brand-ink);
    box-shadow: 0 2px 10px rgba(19, 40, 43, .08);
    outline: none;
}

.tag-critical,
.tag-high {
    background: #fbe3df;
    color: #9c2f22;
}

@media (max-width: 820px) {
    .sidebar {
        position: static;
        height: auto;
        overflow: visible;
    }

    .sidebar-nav {
        flex-wrap: wrap;
    }

    .nav-group + .nav-group {
        margin-top: 0;
    }

    .nav-group-title {
        display: none;
    }

    .nav-group-items,
    .nav-group.closed .nav-group-items {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .session-area .btn {
        white-space: nowrap;
    }

    .dash-todo-list {
        grid-template-columns: 1fr;
    }
}
