
html:has(.io-erp-switch) {
    scroll-padding-top: calc(var(--tv-header-h) + 5rem);
}
.io-erp-switch {
    position: sticky;
    top: calc(var(--tv-header-h) + .5rem);
    z-index: 50;
    margin: -1.65rem auto 0;
    max-width: min(86%, 75rem);
    padding: .45rem;
    background: #fffaf6;
    border: 1px solid #e8cbb7;
    border-radius: 1rem;
    box-shadow: 0 .65rem 1.75rem rgba(83, 43, 19, .12);
}
.io-erp-switch__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .375rem;
}
.io-erp-switch a,
.io-erp-module-grid a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #642d18;
    background: #fff;
    border: 1px solid #efd8c9;
    border-radius: .75rem;
    font-weight: 650;
    text-decoration: none;
}
.io-erp-switch a {
    padding: .52rem .65rem;
    font-size: .82rem;
}
.io-erp-switch a:hover,
.io-erp-switch a:focus-visible,
.io-erp-module-grid a:hover,
.io-erp-module-grid a:focus-visible {
    background: #fff2e8;
    border-color: #c77749;
}
.io-erp-switch a[aria-current],
.io-erp-menu a[aria-current].tv-menu__item {
    color: #fff;
    background: #9a3f1e;
    border-color: #9a3f1e;
}
.io-erp-menu a[aria-current].tv-menu__item strong { color: inherit; }
.io-erp-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: .8rem;
}
.io-erp-module-grid a {
    flex-direction: column;
    justify-content: center;
    min-height: 6rem;
    padding: .85rem;
    text-align: center;
    box-shadow: 0 .3rem .9rem rgba(83, 43, 19, .06);
}
.io-erp-module-grid a i {
    font-size: 1.4rem;
    color: #9a3f1e;
}
.io-erp-related {
    padding: clamp(1rem, 4vw, 2.5rem);
    border: 1px solid #efd8c9;
    border-radius: 1.25rem;
    background: linear-gradient(150deg, #fff, #ffefe3);
}
.io-erp-related .io-erp-module-grid { margin: 1rem 0; }
.io-erp-detail #rollout .io-service-pair { align-items: center; }
@media (max-width: 1049.98px) {
    .io-erp-switch { max-width: 93%; }
    .io-erp-switch__items {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: .25rem;
        scrollbar-width: thin;
    }
    .io-erp-switch a { flex: 0 0 auto; }
}
@media (max-width: 768px) {
    .io-erp-switch { margin-top: .65rem; }
}

@media (min-width: 1050px) {
    .io-erp-switch { width: fit-content; }
    .io-erp-switch a {
        position: relative;
        min-height: 2.6rem;
        min-width: 2.6rem;
        justify-content: center;
    }
    .io-erp-switch a:not([aria-current]) span {
        position: absolute;
        top: calc(100% + .6rem);
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        padding: .35rem .65rem;
        border-radius: .5rem;
        color: #fff;
        background: #482619;
        box-shadow: 0 .25rem .75rem rgba(72, 38, 25, .2);
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
    }
    .io-erp-switch a:not([aria-current]):is(:hover, :focus-visible) span {
        opacity: 1;
    }
    .io-erp-switch a:not([aria-current]) span::before {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: .3rem solid transparent;
        border-bottom-color: #482619;
    }
}
