html, body {
    height: 100%;
    overflow: hidden;
}

.lyear-layout-content {
    height: 100%;
    overflow: hidden;
}

.mt-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.mt-nav-bar {
    display: flex;
    align-items: center;
    height: 40px;
    background: #ffffff;
    position: relative;
    flex-shrink: 0;
}

.mt-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    color: #86909c;
    border-radius: 4px;
    background: #fff;
    z-index: 2;
    display: none;
}

.mt-scroll-btn:hover {
    background: #f2f3f5;
    color: #165dff;
}

.mt-scroll-btn.left {
    left: 5px;
}

.mt-scroll-btn.right {
    right: 4px;
}

.mt-nav-scroll {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.mt-nav {
    display: flex;
    white-space: nowrap;
    transition: transform .2s ease;
    padding-left: 5px;
}

.mt-tab {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 14px;
    margin-right: 6px;
    height: 40px;
    line-height: 40px;
    font-size: 13px;
    color: #4e5969;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background .2s ease, color .2s ease;
}

.mt-tab:hover {
    background: #eef0f3;
}

.mt-tab.active {
    font-weight: 500;
    color: #33cabb;
}

.mt-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 1px;
    background-color: currentColor;
}

.mt-tab-home {
    font-weight: 500;
    cursor: default;
}

.mt-tab-close {
    margin-left: 6px;
    font-size: 14px;
    color: #86909c;
}

.mt-tab-close:hover {
    color: #f53f3f;
}

.mt-content {
    width: 100%;
    background: #ffffff;
    overflow: hidden;
    border-top: 1px solid #e5e6eb;
    margin-top: -1px;
    flex: 1;
    position: relative;
}

.mt-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.mt-content iframe.active {
    display: block;
}

.mt-iframe {
    display: none;
    width: 100%;
    border: none;
}

.mt-iframe.active {
    display: block;
}

.mt-contextmenu {
    position: fixed;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    min-width: 140px;
    padding: 4px 0;
    display: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.mt-contextmenu li {
    list-style: none;
    padding: 8px 16px;
    font-size: 13px;
    color: #4e5969;
    cursor: pointer;
}

.mt-contextmenu li:hover {
    background: #165dff;
    color: #ffffff;
}