/** Styles included in topics course format */

.format-onetopic .jumpmenu {
    text-align: center;
}

.format-onetopic .course-content div.single-section .tabtree .tabrow0 li {
    line-height: 28px;
    display: inline-block;
}

.format-onetopic .course-content div.single-section .tabtree .tabrow0 li.here .empty {
    bottom: 3px;
    display: block;
    height: 1px;
    left: 0;
    right: 0;
}

.format-onetopic .course-content div.single-section .tabtree {
    margin-bottom: 0;
}

.format-onetopic .tab_content {
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.format-onetopic .tab_content.marker {
    font-weight: bold;
}

.format-onetopic .utilities-separator {
    clear: both;
    margin-top: 15px;
}

.format-onetopic ul.nav-tabs li a .tab_content.dimmed .sectionname {
    color: #999;
    opacity: 0.5;
}

.format-onetopic ul.nav-tabs li a .tab_content .iconhelp {
    cursor: pointer;
    margin-left: 5px;
    pointer-events: auto;
}

.format-onetopic ul.nav-tabs li a .tab_content .iconhelp i {
    margin: 0;
}

.format-onetopic .subtopic-increase-sections {
    margin-right: 10px;
}

.format-onetopic li.sublevel {
    padding-left: 20px;
}

.format-onetopic .onetopic .nav-tabs > li > a {
    padding: 0;
}

.format-onetopic .onetopic .tab_content {
    padding: 8px 12px;
    display: inline-block;
}

.format-onetopic .onetopic_hideicons .activityicon {
    display: none;
}

.format-onetopic .availability_info_box {
    display: inline;
}

.format-onetopic .summary img.activityicon {
    margin-right: 3px;
    vertical-align: text-bottom;
}

.format-onetopic #course_format_onetopic_config_movesection .form-item {
    border-bottom: 1px solid #999;
    padding: 10px;
}

.format-onetopic #course_format_onetopic_config_movesection .form-label {
    font-weight: bold;
}

.format-onetopic #course_format_onetopic_config_movesection .form-setting {
    padding-left: 20px;
}

.format-onetopic #course_format_onetopic_config_movesection .form-description {
    padding-left: 50px;
    font-style: italic;
}

.format-onetopic #course_format_onetopic_config_movesection #changenumsections {
    text-align: left;
}

.format-onetopic .onetopic .content > .summary .quickeditlink {
    display: none;
}

.format-onetopic .onetopic .content > .summary .iconhelp {
    cursor: pointer;
    margin-left: 2px;
}

.format-onetopic .onetopic .content > .summary .iconhelp i {
    margin: 0;
}

.format-onetopic .onetopic .completiontag > form,
.format-onetopic .onetopic .completiontag > form > div {
    display: inline;
}

.format-onetopic .onetopic .completiontag > form > div button {
    padding: 0;
    margin: 0;
    line-height: 0;
}

.format-onetopic .onetopic .completiontag img.icon {
    margin: 0 3px 0 5px;
}

.format-onetopic .onetopic.verticaltabs > a[name="tabs-tree-start"] {
    padding-bottom: 20px;
    display: block;
}

.format-onetopic .onetopic.verticaltabs > .nav.nav-tabs:nth-of-type(1) {
    float: left;
    display: flex;
    flex-direction: column;
    width: 250px;
    border-right: 1px solid #dee2e6;
    border-bottom: none;
}

.format-onetopic .onetopic.verticaltabs > .nav.nav-tabs:nth-of-type(1) .nav-item {
    margin-right: -1px;
    margin-bottom: 0;
    max-width: 100%;
}

.format-onetopic .onetopic.verticaltabs > .content-section {
    margin-left: 260px;
    display: grid;
}

.format-onetopic .onetopic.verticaltabs > .nav-tabs .nav-link:hover,
.format-onetopic .onetopic.verticaltabs > .nav-tabs .nav-link:focus,
.format-onetopic .onetopic.verticaltabs > .nav-tabs .nav-link.active,
.format-onetopic .onetopic.verticaltabs > .nav-tabs .nav-item.show .nav-link {
    border-color: #dee2e6 #fff #dee2e6 #dee2e6;
}

.format-onetopic .onetopic-subtabs_body {
    padding: 0 15px;
}

.format-onetopic .tabs-wrapper {
    position: relative;
    max-width: 100%;
    height: 40px;
    margin: 0 auto 20px;
    overflow-x: hidden;
    overflow-y: hidden;
}

.format-onetopic .tabs-wrapper.hasscroll {
    padding: 0 20px;
    border-bottom: 1px solid #dee2e6;
}

.format-onetopic .tabs-wrapper .nav.nav-tabs {
    height: 60px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
}

.format-onetopic .tabs-wrapper .scroll-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    border: none;
    background-color: #fff;
}

.format-onetopic .tabs-wrapper .left-arrow {
    left: 0;
    border-right: 1px solid #dee2e6;
    box-shadow: 1px 0 7px #dee2e6;
}

.format-onetopic .tabs-wrapper .right-arrow {
    right: 0;
    border-left: 1px solid #dee2e6;
    box-shadow: -1px 0 7px #dee2e6;
}
.format-onetopic .nav-item .subtopic {
    font-size: 90%;
}

/* Fixing specific themes */
.format-onetopic.theme_adaptable .tabs-wrapper {
    height: 50px;
}

.format-onetopic.theme_adaptable .tabs-wrapper .nav.nav-tabs {
    height: 65px;
}

.format-onetopic.theme_adaptable .tabs-wrapper .nav-item {
    margin-top: 0;
}

/* Moove or other fontawesome based icons */
.format-onetopic .tabs-wrapper .right-arrow .fa-plus-square:before {
    content: "";
}

.format-onetopic .tabs-wrapper .left-arrow .fa-plus-square:before {
    content: "";
}

@media (max-width: 600px) {
    .format-onetopic .onetopic.verticaltabs > .content-section {
        clear: both;
        margin-left: inherit;
    }

    .format-onetopic .onetopic.verticaltabs > .nav.nav-tabs:nth-of-type(1) {
        width: auto;
        flex-direction: inherit;
    }
}
