/* app/static/css/module_tabs.css */

.module-tabs {
    position: relative;
    z-index: 1003;

    display: flex;
    align-items: flex-end;

    width: 100%;
    max-width: 900px;
    height: 36px;

    margin: -66px auto 0;
    padding-left: 12px;


    box-sizing: border-box;
    z-index: 5000;

}

.module-tab {
    position: relative;

    width: 150px;
    height: 36px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 12px;

    box-sizing: border-box;

    border: none;
    border-radius: 10px 10px 0 0;

    background: var(--color-grey-7);

    color: var(--color-tvguide-stroke);
    text-decoration: none;

    font-size: 14px;
    font-weight: 400;

    cursor: pointer;

    box-shadow: 0 -4px 18px rgba(42, 82, 152, 0.10);
    clip-path: inset(-18px -20px 0 -20px);
}

.module-tab + .module-tab {
    margin-left: 4px;
}

.module-tab:not(.module-tab--active):hover {
    background: #d1d5db;
}

.module-tab--active {
    z-index: 3;

    background: #ffffff;
    color: var(--color-tvguide-active);

    font-weight: 600;
    cursor: default;

    box-shadow: 0 -4px 18px rgba(42, 82, 152, 0.10);
    clip-path: inset(-18px -20px 0 -20px);
}


/*
 * Левая и правая зоны перехода.
 *
 * Они располагаются непосредственно под нижними
 * углами активной вкладки и формируют наружную
 * четверть окружности.
 */




.module-tab-title {
    min-width: 0;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}


@media (max-width: 600px) {

    .module-tabs {
        padding-left: 8px;
    }

    .module-tab {
        width: 140px;
        max-width: 40vw;

        font-size: 13px;
    }
}