.content-modal-tratar-alarmes {
    width: 65rem;
    height: auto;
    padding: 2rem 0;
    margin: 1rem;
    max-height: 70rem;
    overflow-y: auto;

    @media screen and (max-height: 1024px) {
        max-height: 65rem;
    }

    @media screen and (max-height: 900px) {
        max-height: 55rem;
    }

    @media screen and (max-height: 768px) {
        max-height: 40rem;
    }

    .container-acoes-tratamento-alarme {
        @include grid-container;
    }

    .title-full {
        @extend %form-section-title;
        @include grid-column(12);
    }

    .field-validacao-alarmes,
    .field-justificativa-validacao-alarmes {
        @include grid-column(5);
    }

    .field-acao-alarme,
    .field-justificativa-acao-alarme {
        @include grid-column(5);
        @include grid-shift(2);
    }

    .field-observacoes-gerais {
        @include grid-column(12);
    }

    .container-multi-selecao {
        @include grid-container;
    }

    .field-multi-selecao-marcar-todos {
        @include grid-column(1);
        padding-top: 1.6rem;

        .checkbox span {
            margin-bottom: 0;
            padding-right: 0;

            label {
            }
        }
    }

    .field-multi-selecao-justificativa {
        @include grid-column(4);
    }

    .field-multi-selecao-observacao {
        @include grid-column(5);
    }

    .field-multi-selecao-acao {
        @include grid-column(2);
        padding-top: 2.2rem;
        text-align: right;
    }

    .container-validacao-trechos-alarmes {
        position: relative;
        margin: 0 2rem 2rem;

        &.error {
            .message {
                opacity: 1;
                min-height: 2.6rem;
                height: auto;
                padding: .5rem 1.0rem;
                margin-bottom: 1rem;
                top: 0.2rem;
                position: relative;
                border-color: $color-negative;
                background-color: $color-negative;
            }
        }
    }

    .container-trechos-alarmes {
        @include grid-container;
        position: relative;
    }

    .trecho-alarme {
        border-bottom: 0.1rem solid $color-smoke;
        display: flex;
        flex-direction: column;
        padding: 2rem;

        &:nth-child(odd) {
            background: $color-snow-dark;
        }
    }

    .trecho-alarme-referencia-pacman {

        .checkbox {
            padding-top: 0;

            span {
                margin-bottom: 0;

                label {
                    font-weight: 600;
                }
            }

            input + label:before {
                margin: auto;
                top: 0;
                bottom: 0;
            }
        }
    }

    .trecho-alarme-galeria-via-obstruida {
        margin-bottom: 2rem;

        a {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 8rem;
            height: 8rem;
            border: 0.2rem solid;
            position: relative;
            overflow: hidden;
            margin-right: 1rem;

            img {
                display: block;
                width: 14rem;
                position: absolute;

            }
        }
    }

    .trecho-alarme-inputs {
        display: flex;
        justify-content: space-between;

        fieldset {
            margin-bottom: 0;
        }

        .trecho-alarme-justificativa {
        }

        .trecho-alarme-observacao {
            margin-left: 2rem;
            flex-grow: 1;
        }
    }

    .alarmes-veiculos {
        font-size: 1.4rem;
        margin: 2rem;

        .alarmes-item-veiculo {
            font-size: 1.3rem;
            border-radius: 0.3rem;
            padding: 0.3rem 2rem;
            margin-top: 0.5rem;
            background: $color-snow-dark;
            display: flex;
            align-items: center;

            .camada-title {
                width: 70%;
            }

            .checkbox {
                width: 30%
            }
        }

        .alarmes-veiculos-title {
            margin-left: 0.5rem;
            font-weight: bold;
        }
    }
}

.content-modal-tratar-alarmes + .modal-footer .btn-action {
    float: right;
}

.fancybox-thumbs__list a::before {
    border: 6px solid $color-main;
}

.fancybox-progress {
    background: $color-main;
}
