﻿.editor-toolbar {
    display: flex;
    padding-bottom: .5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
    flex-wrap: wrap;
    align-items: center;
}
.msl-tab-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin-bottom: 1rem;
    flex-wrap:wrap;
}

.msl-tab-nav > a, .editor-toolbar .dropdown > a, .msl-tab-link, .msl-tab-toggle {
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #eee;
    color: #333;
    border-radius: 5px;
    margin-right: .5rem;
    border: 1px solid transparent;
    transition: 0.2s ease all;
}

.msl-tab-nav > a {
    margin-bottom: 0.5rem;
}

a.msl-tab-link {
    background: #fff;
    border: 1px solid #ccc;
}
a.msl-tab-back:before {
    font-family: "Font Awesome 6 Pro";
    content:"\f060";
    margin-right: 0.5rem;
    font-weight: 900;
}

.msl-tab-nav a:hover,
.msl-tab-nav a:focus,
.editor-toolbar .msl-tab-toggle.dropdown-toggle:hover,
.editor-toolbar .msl-tab-toggle.dropdown-toggle:hover{
    border-color: rgb(13, 110, 253);
    color: rgb(13, 110, 253);
}

.msl-tab-nav a.active {
    background: rgb(13, 110, 253);
    color: #fff;
}


.msl-tab-content {
    display: none;
}

.msl-tab-content.active {
    display: block;
}

.msl_admin_page .vp_form .msl-tab-content fieldset + fieldset {
    margin-top: 1rem;
}

.msl-tab-content > *:first-child {
    margin-top: 0;
}

/* Dropdown item */
.msl-tab-nav .dropdown {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.editor-toolbar .msl-tab-toggle.dropdown-toggle {
    cursor: pointer;
    margin: 0 0.5rem 0 0;
    background: #fff;
    border-color: #ccc;
}

.editor-toolbar .msl-tab-link {
    cursor: pointer;
    background: #fff;
    border-color: #ccc;
    padding: 0.5rem 0.75rem;
}

.msl-tab-toggle.dropdown-toggle.show {
    background: rgb(13, 110, 253);
    color: #fff;
}
.msl-tab-toggle.dropdown-toggle.show:hover, .msl-tab-toggle.dropdown-toggle.show:focus {
    color: #fff;
}

.dropdown .aspNetDisabled {
    background: rgb(13, 110, 253);
    color: #fff;
}

/* Handle the dropdown for tabs on mobile */
@media (max-width:768px) {
    .dropdown-sm .msl-tab-nav {
        flex-direction: column;
        align-items:flex-start;
    }
    .msl-tab-nav a {
        width: 100%;
        text-align: left;
        display: block;
        margin:0 !important;
        border-radius:0;
        background-color: transparent;
    }
}
@media (min-width:768px) {
    .dropdown-sm {
        flex-grow:1;
    }
    .dropdown-sm .tab-headings-toggle {
        display: none;
    }
    .dropdown-sm .dropdown-menu {
        display: block;
        position: static;
        padding:0;
        border: none;
    }
}
@media (min-width:768px) and (max-width: 840px) {
    .editor-toolbar a {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem !important;
        line-height: 1rem;
    }
}
@media (min-width:840px) and (max-width: 992px) {
    .editor-toolbar a {
        font-size: 0.9rem;
        padding: 0.5rem 0.7rem !important;
        line-height: 1rem;
    }
}