.ipam-restabs {
    margin: 24px 0;
}

.ipam-restabs-list {
    display: flex;
    align-items: stretch;
    gap: 2px;
    border-bottom: 4px solid var(--ipam-tab-active-bg);
}

.ipam-restabs-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding: 12px 9px;
    border: 0;
    border-radius: 0;
    background: var(--ipam-tab-bg);
    color: var(--ipam-tab-color);
    font-family: 'proxima-nova', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.ipam-restabs-tab:hover,
.ipam-restabs-tab:focus-visible {
    background: var(--ipam-tab-hover-bg);
    color: var(--ipam-tab-color);
}

.ipam-restabs-tab[aria-selected="true"] {
    background: var(--ipam-tab-active-bg);
    color: var(--ipam-tab-active-color);
}

.ipam-restabs-tab:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid #fff;
    outline-offset: -3px;
    box-shadow: inset 0 0 0 5px #000;
}

.ipam-restabs-panel {
    padding: 28px 4px 4px;
}

.ipam-restabs-panel[hidden] {
    display: none;
}

.ipam-restabs-panel::after {
    display: table;
    clear: both;
    content: '';
}

@media (max-width: 700px) {
    .ipam-restabs {
        margin: 18px 0;
    }

    .ipam-restabs-list {
        flex-wrap: wrap;
        gap: 1px;
    }

    .ipam-restabs-tab {
        flex: 1 1 calc(25% - 1px);
        min-width: 0;
        padding: 11px 14px;
    }

    .ipam-restabs-panel {
        padding-top: 20px;
    }
}

@media (max-width: 520px) {
    .ipam-restabs-tab {
        flex-basis: calc(50% - 1px);
    }
}
