.title-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.date {
    color: #666;
    font-size: 14px;
}

.history-btn {
    background-color: #0DCAF0;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    height: 38px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #666;
}

select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #666;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

#div_id_estacao_prioritaria{
    padding-left: 0;

    input{
        margin-right: 0.5rem;
        float: none;
    }
}

#div_id_dia{
    margin-bottom: 0 !important;

    label{
        font-weight: 500;
    }

    #id_dia{
        height: 38px;
        padding-left: 8px;
        border-radius: 3px;
    }
}

.organizador {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-group label {
    font-size: 14px;
    color: #666;
}

.sort-group select {
    width: 200px;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* .toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
} */

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0066ff;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* .toggle-label {
    font-size: 14px;
    color: #666;
} */

@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 475px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
    }
}

.card.card-bacia{
    border: 1px solid #212529;
    box-shadow: none;
    border-radius: 5px;
    align-items: center;

    img{
        width: fit-content;
        margin: 10px 0;
    }

    .card-footer{
        display: flex;
        align-items: center;
        justify-content: center;
        background: #212529;
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        width: 100%;
    }
}

.estacao_item .estacao_id .col-12 span{
    color: #6C757D;
    font-weight: 600;
    font-size: 15px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;

    b{
        font-weight: 700;
        color: #212529;
        margin-right: 4px;
    }

}

.estacao_item .row .custom-checkbox{
    font-size: 16px;

    input{
        width: 15px;
        height: 15px;
    }
}

.estacao_item .estacao_dados .col-9 .head{
    font-size: 12px;
    font-weight: 600;
    color: #0d6efd;
    border-bottom: 1px solid #0d6efd;
    width: 100%;
    display: inline-flex;
    margin-bottom: 7px;
}

.estacao_item .estacao_dados .col-12 .head{
    background: #CFF4FC;
    font-size: 12px;
    font-weight: 600;
    color: #0d6efd;
    border-bottom: 1px solid #0d6efd;
    width: 100%;
    display: inline-flex;
    padding: 1px;
    justify-content: center;
    margin-bottom: 7px;
}

.estacao_item .estacao_dados .col-12 .head.alerta{
    background: #DC3545;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid #212529;
    width: 100%;
    display: inline-flex;
    padding: 1px;
    justify-content: center;
    margin-bottom: 7px;
}

.estacao_item .estacao_dados .col-12 .head.atencao{
    background: #FFC107;
    font-size: 12px;
    font-weight: 600;
    color: #212529;
    border-bottom: 1px solid #212529;
    width: 100%;
    display: inline-flex;
    padding: 1px;
    justify-content: center;
    margin-bottom: 7px;
}

.estacao_item .estacao_dados .body{
    font-size: 12px;
    color: #495057;
    font-weight: 400;
    display: inline-flex;
    width: 100%;
    flex-wrap: wrap;

    b{
        font-weight: 600;
        margin-right: 5px;
    }
}

.estacao_item .estacao_dados .body.alerta{
    font-size: 12px;
    color: #DC3545;
    font-weight: 400;
    display: inline-flex;
    width: 100%;
    flex-wrap: wrap;

    b{
        font-weight: 600;
        margin-right: 5px;
    }
}

.estacao_item .estacao_dados .body.atencao{
    font-size: 12px;
    color: #B28500;
    font-weight: 400;
    display: inline-flex;
    width: 100%;
    flex-wrap: wrap;

    b{
        font-weight: 600;
        margin-right: 5px;
    }
}

@media(max-width: 1493px) and (min-width: 1280px){
    .estacao_item .estacao_dados .col-12{
        width: 29%;
    }

    .estacao_item .estacao_dados .col-9{
        width: 21%;
    }
}

@media(max-width: 569px){
    .estacao_item .row .custom-checkbox {
        font-size: 17px;
        margin: 1rem 0;
        display: flex;
        align-items: center;

        input{
            width: 17px;
            height: 17px;
            margin-right: 6px;
        }
    }
}

.btn-footer{
    gap: 10px;
    justify-content: right;
}

@media(max-width: 569px){
    .btn-footer{
        justify-content: space-between;
        gap: 0;

        a, button{
            width: 49% !important;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

    .form-grid{
        gap: 10px;

        .form-group > div.mb-3{
            margin-bottom: 0 !important;
        }
    }

    .buttons {
        gap: 0;
        justify-content: space-between;
        width: 100%;

        button{
            width: 49%;
            font-size: 16px !important;
        }
    }
}

@media(max-width: 375px){
    .btn-footer{
        justify-content: center;
        flex-direction: column-reverse;
        gap: 0;

        a, button{
            width: 100% !important;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 5px 0;
            font-size: 16px;
            padding: 8px 0;
        }
    }

    .buttons {
        gap: 0;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;

        button{
            width: 100%;
            font-size: 16px !important;
            margin: 5px 0;
            padding: 8px 0;
        }
    }

    .history-btn{
        width: 100%;
        justify-content: center;
    }
}
