#tab-adjustments-templates {
    display: none;
}
.tab-adjustments {
    .range {
        .marker {
            background: var(--primary-200);
        }
        &:first-child {
            border-top: 0px;
        }
        &:last-child {
            border-bottom: 0px;
        }
    }
    .channel-slider {
        .noUi-connect {
            background: var(--primary-500);
        }
    }
    table {
        border-radius: 0.5rem;
        overflow: hidden;
    }
    .adjustments {
        width: 100%;
        border-spacing: 0px;
        thead {
            td {
                text-align: center;
                white-space: nowrap;
                padding: 10px 10px;
                background-color: var(--surface-300);
                color: var(--text);
            }
        }
    }
    td {
        border-top: 1px solid var(--surface-500);
        border-bottom: 1px solid var(--surface-500);
        padding: 0 0.5rem;
    }
    .adjustment {
        background-color: var(--surface-300);
        &:nth-child(odd) {
            background-color: var(--surface-200);
        }
        td {
            text-align: center;
        }
        .info {
            height: 6.5rem;
            .enabling {
                white-space: nowrap;
            }
        }
        .channelInfo {
            .limits {
                padding: 0.5rem 0;
            }
        }
        .range {
            width: 100%;
            padding: 0 1rem;
            .channel-slider {
                margin-top: -2rem;
            }
            .marker {
                position: absolute;
                left: 50%;
                top: 27px;
                height: 13px;
                width: 6px;
                margin-left: -3px;
                border-radius: 3px;
                z-index: 1000;
            }
        }
    }
}
.noUi-target {
    border-radius: 0.5rem;
}
@media all and (max-width: 575px) {
    .tab-adjustments {
        .overflow {
            overflow: visible;
        }

        .adjustments thead {
            display: none;
        }

        .adjustments tbody {
            display: block;
        }

        .adjustment {
            display: block;
            background-color: var(--surface-200);
            margin-bottom: 0.5rem;
            border-radius: 0.5rem;
            overflow: visible;
            width: 100%;
            box-sizing: border-box;

            &:nth-child(odd) {
                background-color: var(--surface-200);
            }

            td {
                display: block;
                border: none;
                padding: 0.75rem;
                text-align: left;
                width: 100%;
                box-sizing: border-box;

                &::before {
                    content: attr(data-label);
                    font-weight: bold;
                    display: block;
                    margin-bottom: 0.5rem;
                    color: var(--text);
                    font-size: 0.9em;
                }
            }
            .info {
                height: auto;
                min-height: 2.5rem;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                background-color: var(--surface-300);
                gap: 1rem;
                padding: 0.75rem;

                &::before {
                    content: attr(data-label);
                    font-weight: bold;
                    display: inline;
                    margin-bottom: 0;
                    color: var(--text);
                    font-size: 0.9em;
                }

                .enabling {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 0.75rem;
                }
            }

            .channelInfo {
                > div:first-child {
                    margin-bottom: 0.75rem;

                    select {
                        width: 100%;
                        padding: 0.5rem;
                        border: 1px solid var(--surface-500);
                        border-radius: 3px;
                        box-sizing: border-box;
                    }
                }

                .limits {
                    display: flex;
                    justify-content: space-between;
                    padding: 0;
                    margin-top: 0.5rem;

                    p {
                        margin: 0;
                        font-size: 0.875em;
                        flex: 1;

                        &.lowerLimit {
                            text-align: left;
                        }

                        &.upperLimit {
                            text-align: right;
                        }
                    }
                }
            }

            .range {
                padding: 0.75rem;

                .channel-slider {
                    margin-top: 1rem;
                    margin-bottom: 2.5rem;
                    width: 100%;
                    position: relative;
                }

                .marker {
                    top: 2.75rem;
                }
            }

            .functionSelection {
                select {
                    width: 100%;
                    padding: 0.5rem;
                    border: 1px solid var(--surface-500);
                    border-radius: 3px;
                    box-sizing: border-box;
                }
            }

            .functionSwitchChannel {
                select {
                    width: 100%;
                    padding: 0.5rem;
                    border: 1px solid var(--surface-500);
                    border-radius: 3px;
                    box-sizing: border-box;
                }
            }
        }
    }
}
