html,
body {
    min-width: 0;
}

.team-access-workspace {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    background: #f3f6f5;
    color: #1d2c2d;
    transition: margin-left .24s ease;
}

.team-access-topbar {
    min-height: 96px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #dbe3e1;
    background: #fff;
}

.team-access-topbar h1 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.15;
}

.team-access-topbar p,
.process-head p,
.role-workplace-head p,
.employee-page-detail p {
    margin: 0;
    color: #677774;
    font-size: 13px;
    line-height: 1.5;
}

.team-access-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-access-profile > span,
.role-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    background: #edf2f1;
    color: #08737a;
    font-weight: 700;
}

.team-access-profile b,
.team-access-profile small {
    display: block;
}

.team-access-profile b {
    font-size: 14px;
}

.team-access-profile small {
    margin-top: 3px;
    color: #697875;
    font-size: 12px;
}

.team-access-content {
    padding: 22px 30px 30px;
}

.team-access-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.team-access-summary article {
    padding: 14px 15px;
    border-bottom: 2px solid #d5dfdd;
    background: #fff;
}

.team-access-summary span,
.team-access-summary b {
    display: block;
}

.team-access-summary span {
    color: #687875;
    font-size: 12px;
}

.team-access-summary b {
    margin-top: 5px;
    font-size: 15px;
}

.team-access-tabs {
    margin-top: 18px;
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #d5dfdd;
}

.team-access-tabs button,
.process-owner,
.decision-button,
.page-open-link {
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid #cbd6d4;
    border-radius: 5px;
    background: transparent;
    color: #253735;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.team-access-tabs button[aria-pressed="true"],
.decision-button[aria-pressed="true"] {
    border-color: #08737a;
    background: #08737a;
    color: #fff;
}

.team-access-view {
    margin-top: 18px;
}

.team-access-view[hidden] {
    display: none;
}

.process-sequence {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.support-pages-button {
    min-height: 42px;
    margin-top: 8px;
    padding: 0 12px;
    border: 1px dashed #aebdba;
    border-radius: 5px;
    background: transparent;
    color: #536561;
    cursor: pointer;
    font: inherit;
}

.support-pages-button[aria-pressed="true"] {
    border-style: solid;
    border-color: #08737a;
    background: #e7f2f1;
    color: #075d63;
}

.process-stage {
    min-width: 158px;
    min-height: 82px;
    padding: 10px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border: 1px solid #d4dddb;
    border-radius: 7px;
    background: #fff;
    color: #253432;
    text-align: left;
    cursor: pointer;
}

.process-stage[aria-pressed="true"] {
    border-color: #08737a;
    background: #e7f2f1;
}

.process-stage-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf2f1;
    font-weight: 700;
}

.process-stage b,
.process-stage small {
    display: block;
}

.process-stage b {
    font-size: 13px;
}

.process-stage small {
    margin-top: 5px;
    color: #687875;
    font-size: 11px;
}

.process-head {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
    gap: 16px;
    align-items: start;
}

.process-head h2,
.role-workplace-head h2 {
    margin: 0 0 6px;
    font-size: 21px;
}

.process-people {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.process-people > div,
.employee-page-meta > div {
    min-width: 0;
    padding: 10px 12px;
    background: #eaf0ef;
}

.process-people span,
.process-people b,
.employee-page-meta span,
.employee-page-meta b {
    display: block;
}

.process-people span,
.employee-page-meta span {
    color: #687875;
    font-size: 12px;
}

.process-people b,
.employee-page-meta b {
    margin-top: 4px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.process-owner {
    width: 100%;
    min-height: 28px;
    margin-top: 3px;
    padding: 0;
    border: 0;
    color: #08737a;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.section-heading {
    margin-top: 18px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #d5dfdd;
}

.section-heading h3,
.employee-menu h3,
.employee-page-detail h3,
.access-boundary h3 {
    margin: 0;
    font-size: 16px;
}

.section-heading span {
    color: #687875;
    font-size: 12px;
}

.process-pages {
    display: grid;
}

.process-page {
    padding: 13px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #dfe6e4;
    background: #fff;
}

.process-page-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.module-mark {
    width: 34px;
    height: 34px;
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 6px;
    background: #edf2f1;
    color: #08737a;
    font-weight: 700;
}

.process-page b,
.process-page small {
    display: block;
}

.process-page b {
    font-size: 13px;
}

.process-page small {
    margin-top: 4px;
    color: #687875;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.page-state {
    display: inline-block;
    margin-left: 7px;
    padding: 3px 7px;
    border: 1px solid #d2dcda;
    border-radius: 12px;
    color: #344542;
    font-size: 11px;
    font-style: normal;
    white-space: nowrap;
}

.process-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.decision-button,
.page-open-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
}

.page-open-link {
    border-color: #08737a;
    color: #08737a;
}

.team-access-feedback {
    min-height: 20px;
    margin: 8px 0 0;
    color: #08737a;
    font-size: 12px;
}

.role-workplaces {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.role-list {
    display: grid;
    gap: 6px;
}

.role-list-button {
    min-height: 60px;
    padding: 8px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    border: 1px solid #d4dddb;
    border-radius: 6px;
    background: #fff;
    color: #253432;
    text-align: left;
    cursor: pointer;
}

.role-list-button[aria-pressed="true"] {
    border-color: #08737a;
    background: #e7f2f1;
}

.role-list-button b,
.role-list-button small {
    display: block;
}

.role-list-button b {
    font-size: 13px;
}

.role-list-button small {
    margin-top: 3px;
    color: #687875;
    font-size: 11px;
}

.role-workplace {
    min-width: 0;
    border: 1px solid #d4dddb;
    background: #fff;
}

.role-workplace-head {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #dfe6e4;
}

.role-workplace-counts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.role-workplace-counts span {
    padding: 6px 9px;
    background: #edf2f1;
    font-size: 12px;
    white-space: nowrap;
}

.role-workplace-grid {
    min-height: 480px;
    display: grid;
    grid-template-columns: minmax(220px, .48fr) minmax(0, 1fr);
}

.employee-menu {
    padding: 12px;
    border-right: 1px solid #dfe6e4;
    background: #f7f9f8;
}

.employee-menu-list {
    margin-top: 10px;
    display: grid;
    gap: 5px;
}

.employee-menu-button {
    min-height: 48px;
    padding: 8px 9px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: #253432;
    text-align: left;
    cursor: pointer;
}

.employee-menu-button[aria-pressed="true"] {
    border-left-color: #08737a;
    background: #e2f0ef;
}

.employee-menu-button b,
.employee-menu-button small {
    display: block;
}

.employee-menu-button b {
    font-size: 13px;
}

.employee-menu-button small {
    margin-top: 3px;
    color: #687875;
    font-size: 11px;
}

.employee-page-detail {
    padding: 18px;
    min-width: 0;
}

.employee-page-head {
    padding-bottom: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #dfe6e4;
}

.employee-page-head h3 {
    margin-bottom: 6px;
}

.employee-page-meta {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.access-boundary {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #dfe6e4;
}

.access-boundary p {
    margin-top: 7px;
}

.team-access-note {
    margin: 16px 2px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #657572;
    font-size: 12px;
    line-height: 1.5;
}

.team-access-note span {
    color: #08737a;
}

.team-access-tabs button:focus-visible,
.process-stage:focus-visible,
.support-pages-button:focus-visible,
.process-owner:focus-visible,
.decision-button:focus-visible,
.page-open-link:focus-visible,
.role-list-button:focus-visible,
.employee-menu-button:focus-visible {
    outline: 3px solid rgba(8, 115, 122, .38);
    outline-offset: 2px;
}

@media (max-width: 1180px) {
    .team-access-content {
        padding: 18px;
    }

    .team-access-topbar {
        padding: 18px 22px;
    }

    .process-head {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    }
}

@media (max-width: 960px) {
    .process-head,
    .role-workplaces {
        grid-template-columns: 1fr;
    }

    .role-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .role-workplace-grid {
        grid-template-columns: 1fr;
    }

    .employee-menu {
        border-right: 0;
        border-bottom: 1px solid #dfe6e4;
    }

    .employee-menu-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .team-access-workspace {
        margin-left: 64px;
    }

    .team-access-topbar {
        min-height: 82px;
        padding: 14px;
    }

    .team-access-topbar h1 {
        font-size: 21px;
    }

    .team-access-topbar p {
        font-size: 12px;
    }

    .team-access-profile > div {
        display: none;
    }

    .team-access-content {
        padding: 12px;
    }

    .team-access-summary {
        grid-template-columns: 1fr;
    }

    .process-page {
        grid-template-columns: 1fr;
    }

    .process-page-actions {
        justify-content: flex-start;
        padding-left: 45px;
    }

    .role-workplace-head,
    .employee-page-head {
        display: grid;
    }

    .role-workplace-counts {
        justify-content: flex-start;
    }
}

@media (max-width: 430px) {
    .team-access-content {
        padding: 9px;
    }

    .team-access-topbar p {
        display: none;
    }

    .team-access-tabs,
    .process-people,
    .role-list,
    .employee-menu-list,
    .employee-page-meta {
        grid-template-columns: 1fr;
    }

    .team-access-tabs {
        display: grid;
    }

    .process-page-actions {
        padding-left: 0;
    }

    .decision-button,
    .page-open-link {
        flex: 1 1 44%;
        justify-content: center;
    }
}
