html {
    font-size: 14px;
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .link-container {
        padding: 15px 10px 10px 10px;
        margin: 0;
    }

    .form-container {
        padding: 12px;
        min-height: auto;
    }

    .titulo-menor {
        font-size: 1.3em;
        text-align: center;
    }

    #preview-image {
        width: 40% !important;
        max-width: 150px;
    }

    /* Ajustes para o switch */
    .switch {
        width: 50px;
        height: 28px;
    }

    .slider:before {
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .slider:before {
        transform: translateX(22px);
    }

    /* Ajustes para os checkboxes das indústrias */
    #industriaSelecionadas {
        max-width: 100% !important;
    }

    .form-check {
        margin-bottom: 8px;
        padding: 5px;
    }

    .form-check-input {
        margin-right: 8px;
        min-width: 16px;
        min-height: 16px;
    }

    /* Ajustes para textarea */
    textarea.form-control {
        min-height: 80px;
        resize: vertical;
    }

    /* Comprovações status */
    .d-flex.justify-content-between.border.p-2.rounded.gap-3 {
        flex-direction: column;
        gap: 5px !important;
    }

        .d-flex.justify-content-between.border.p-2.rounded.gap-3 span {
            font-size: 12px;
            text-align: center;
        }

    /* Navegação responsiva */
    .navigation-buttons .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navigation-buttons .btn {
        min-width: 44px;
        margin: 2px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .link-container {
        padding: 10px 8px 8px 8px;
    }

    .form-container {
        padding: 10px;
    }

    .titulo-menor {
        font-size: 1.2em;
    }

    #preview-image {
        width: 35% !important;
        max-width: 120px;
    }

    .btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}





.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}



.body_fundo {
    background-image: url('/dist/img/fundo.png');
    background-size: cover;
    margin-bottom: 60px;
    background-repeat: no-repeat; /* Evita repetição da imagem */
}

body {
    margin-bottom: 60px;
}

.field-validation-error {
    color: red;
}

.input-validation-error {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.map-container {
    display: flex;
    position: relative;
    /*border: 3px dotted #666;*/
    margin: 0px;
    padding: 0px;
    min-width: 500px;
    min-height: 250px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.map-point-header {
    cursor: move
}

    .map-point-header[disabled] {
        pointer-events: none; /* Desativa interação */
        cursor: not-allowed;
        opacity: 0.5; /* Reduz a opacidade */
    }

.map-point {
    cursor: move
}

.map-point-circle {
    border-radius: 50%;
    cursor: move
}

.map-point-selected {
    border-style: solid;
    border-color: rebeccapurple;
}

.map-point-popup {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    white-space: nowrap;
}

.slider-container {
    margin-top: 10px;
}

.map-status-item {
    /*border-radius: 50%;*/
    cursor: move
}

/*.map-status-item-selected {*/
/*border-style: solid;*/
/*border-color: rebeccapurple;
    border: 5px dotted;*/
/*transition: border-width 0.3s ease-in-out;*/
/*}*/

/* Estilo para o switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

    .switch 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: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 2px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #4CAF50;
}

    input:checked + .slider:before {
        transform: translateX(20px);
    }

/* Estilo arredondado */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

/* Classe para destacar os componentes */

/* Estilos para cada tipo de destaque */
.highlighted {
    background-color: rgba(255, 255, 0, 1) !important; /* Cor de fundo amarela com opacidade total */
    border-color: rgba(255, 255, 0, 1) !important; /* Borda amarela com opacidade total */
    box-shadow: 0 0 20px rgba(255, 255, 0, 1) !important; /* Efeito de brilho */
    animation: pulse 1.5s infinite; /* Animação de pulso */
}

.highlighted-disponivel {
    background-color: rgba(0, 255, 0, 1) !important; /* Cor de fundo verde com opacidade total */
    border-color: rgba(0, 255, 0, 1) !important; /* Borda verde com opacidade total */
    box-shadow: 0 0 20px rgba(0, 255, 0, 1) !important; /* Efeito de brilho */
}

.highlighted-orcado_rede {
    background-color: rgba(0, 128, 0, 1) !important; /* Cor de fundo verde limão com opacidade total */
    border-color: rgba(0, 128, 0, 1) !important; /* Verde Limão com opacidade total */
    box-shadow: 0 0 20px rgba(0, 128, 0, 1) !important; /* Efeito de brilho */
}

.highlighted-orcado_loja {
    background-color: rgba(255, 255, 0, 1) !important; /* Cor de fundo verde limão escuro com opacidade total */
    border-color: rgba(255, 255, 0, 1) !important; /* Cor verde limão escuro */
    box-shadow: 0 0 20px rgba(255, 255, 0, 1) !important; /* Efeito de brilho */
}

.highlighted-contratado {
    background-color: rgba(255, 140, 0, 1) !important; /* Cor de fundo laranja escuro com opacidade total */
    border-color: rgba(255, 140, 0, 1) !important; /* Laranja Escuro com opacidade total */
    box-shadow: 0 0 20px rgba(255, 140, 0, 1) !important; /* Efeito de brilho */
}

.highlighted-alocado {
    background-color: rgba(255, 0, 0, 1) !important; /* Cor de fundo vermelha com opacidade total */
    border-color: rgba(255, 0, 0, 1) !important; /* Bordas vermelhas com opacidade total */
    box-shadow: 0 0 20px rgba(255, 0, 0, 1) !important; /* Efeito de brilho */
}


/* Animação de pulso para os componentes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Estilo para o botão selecionado */
.map-status-item-selected {
    background-color: #1c1c1c !important; /* Fundo mais escuro */
    color: white !important;
    border: 3px solid yellow; /* Borda amarela para destacar */
}

.btn-custom-green {
    background-color: #4CAF50; /* Verde suave e elegante */
    color: white;
    border-color: #4CAF50;
}

    .btn-custom-green:hover {
        background-color: #45A049; /* Tom um pouco mais escuro ao passar o mouse */
        border-color: #45A049;
    }
/* Define a cor padrão do botão */
.btn-custom {
    background-color: #4CAF50; /* Verde padrão */
    color: white; /* Cor do texto */
    border: none; /* Remover borda padrão */
    padding: 10px 20px; /* Espaçamento interno */
    font-size: 16px; /* Tamanho da fonte */
    border-radius: 5px; /* Bordas arredondadas */
    cursor: pointer; /* Cursor de ponteiro */
    transition: background-color 0.3s; /* Transição suave para a mudança de cor */
}

    /* Define a cor do botão ao passar o mouse */
    .btn-custom:hover {
        background-color: #45a049; /* Verde mais escuro ou diferente para hover */
    }


.nav-tabs {
    margin-bottom: 0;
    background-color: #393F45;
    border-bottom: none;
}

    .nav-tabs .nav-link {
        color: #ffffff;
        box-shadow: none; /* Remove sombra ao focar */
        border-color: transparent; /* Remove bordas */
    }

        .nav-tabs .nav-link.active {
            background-color: #333333; /* Fundo aba ativa */
            color: #ffffff;
            border-color: transparent; /* Remove bordas coloridas */
            box-shadow: none !important; /* Remove sombras padrão */
        }

        .nav-tabs .nav-link:focus,
        .nav-tabs .nav-link:active {
            box-shadow: none; /* Remove foco/seleção */
            outline: none; /* Remove bordas padrão */
        }

.card-primary {
    background-color: #393F45; /* Cor azul padrão do Bootstrap */
    border-color: #393F45; /* Ajuste da borda, se necessário */
}

/* Estilo para a miniatura selecionada */
.img-thumbnail.highlighted {
    border: 3px solid #007bff; /* Contorno azul para destaque */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); /* Sombra sutil */
}

/* Fix para ícones de ordenação DataTables com Bootstrap 4 e Font Awesome 6 */

/* Remove os ícones padrão do DataTables */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    content: "";
    display: none;
}

/* Adiciona os novos ícones usando Font Awesome 6 */
table.dataTable thead .sorting:after {
    content: "\f0dc"; /* fa-sort */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    color: #999;
    float: right;
    margin-left: 8px;
}

table.dataTable thead .sorting_asc:after {
    content: "\f0de"; /* fa-sort-up */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    color: #333;
    float: right;
    margin-left: 8px;
}

table.dataTable thead .sorting_desc:after {
    content: "\f0dd"; /* fa-sort-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    color: #333;
    float: right;
    margin-left: 8px;
}

/* Ajustes de posicionamento */
table.dataTable thead th {
    position: relative;
}

/* Para melhor alinhamento em colunas pequenas */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    padding-right: 30px;
}

    /* Opcional: Hover effect */
    table.dataTable thead .sorting:hover:after {
        color: #666;
    }

/* Para DataTables com tema Bootstrap 4 */
.table thead th.sorting:after,
.table thead th.sorting_asc:after,
.table thead th.sorting_desc:after {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

/* Fix específico para tabela pequena (table-sm) */
.table-sm thead th.sorting:after,
.table-sm thead th.sorting_asc:after,
.table-sm thead th.sorting_desc:after {
    font-size: 0.75rem;
}