
.modal-content{
    border-radius: 15px;
}
.modal-header{
    border-radius: 15px 15px 0 0;
    border-bottom: 0.8px solid #ece7e7;
    padding-bottom: 10px;
}
.modal-footer{
    border-radius: 0 0 15px 15px;
}
.modal-dialog .btn{
    border-radius: 8px;
    padding: 10px;
    gap: 4px;
}

.modal-title{
    font-size: 2rem;
    font-weight: bold;
}

.modal-header .close{
    margin-top: 3px;
}

/* nav bar do modal */

.modal-body > .nav {
    margin: 0px !important;
    margin-bottom: 10px !important;
}

.nav-default {
    line-height: normal;
    background-color: white;
}
.nav-tabs > li.active > a{
    width: auto !important;
    height: auto !important;
}

.nav-tabs > li {
    position: relative;
    display: block;
    margin: 4px 4px;
    border-radius: 8px;
}

.nav-tabs > li > a{
    border: 1px solid black;
    margin: 0px;
    border-radius: 8px;
    padding: 7px 10px;
    color: black;
}

.nav-tabs > li.active > a{
    background: #22c55e;
    color: #FFF;
    border: 1px solid #22c55e;
}

.nav-tabs > li > a:hover{
    border-radius: 8px;
    border: 1px solid black;
}

/* fim do nav bar do modal */

/* inicio estilo dos campos de input */

.coluna-modal-personalizada{
    display: flex;
    flex-direction: column;
}

.pr-2{
    padding-right: 6px;
}

.mt-2{
    margin-top: 5px;
}

.custom-config-maps .checkbox {
    height: 35px;
    margin: 0px;
}

label{
    font-size: 1.4rem;
}


@media (min-width: 768px) {
    .modal-dialog {
        width: 800px;
    }
}

/* select div de pesquisa */
.bootstrap-select.btn-group .dropdown-menu{
    margin-top: 45px;
}


/* O container do switch - ajusta o tamanho */
.switch {
  position: relative;
  display: inline-block;
  width: 46px; /* Largura do botão */
  height: 24px; /* Altura do botão */
  margin-bottom: 0;
}

/* Esconde o checkbox HTML padrão */
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

/* O trilho (fundo cinza/verde) */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc; /* Cor quando desativado (cinza) */
  -webkit-transition: .4s;
  transition: .4s;
}

/* A bolinha branca (o puxador) */
.slider:before {
  position: absolute;
  content: "";
  height: 18px; /* Altura da bolinha */
  width: 18px;  /* Largura da bolinha */
  left: 3px;    /* Espaço da esquerda */
  bottom: 3px;  /* Espaço de baixo */
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

/* Quando o input está CHECADO (ativo) */
input:checked + .slider {
  background-color: #28a745; /* A cor VERDE da sua imagem */
}

/* Quando focado (acessibilidade) */
input:focus + .slider {
  box-shadow: 0 0 1px #28a745;
}

/* Move a bolinha para a direita quando checado */
input:checked + .slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}

/* Arredonda as bordas para ficar estilo pílula */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}



/* estilo para aba de veiculos no editar usuario */

.bs-actionsbox {
    height: 48px;
}

.bootstrap-select.form-control.multiexpand .bs-searchbox {
    width: 100% !important;
}

.bootstrap-select.form-control.multiexpand .bs-searchbox:before {
    line-height: 45px;
    padding-left: 14px;
}

.dropdown-menu .bs-actionsbox .btn-block, .dropdown-menu .bs-actionsbox .actions-btn{
    height: 100% !important;
}

.dropdown-menu .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
    width: 50%;
    height: 100%;
    padding:0px !important;
}

#client-add-form-objects .dropdown-menu{
    margin-top: 0px;
}


/* mobile */
@media (max-width: 600px) {
    #header{
        padding: 12px 32px 12px 88px;
    }    
    .table-responsive {
        overflow: scroll !important;
    }
    #admin-content {
        padding: 13px 5px 13px 5px !important;
    }
    #widgets-list .icon{
        /* display: none; */
    }
    .panel-form {
        padding: 5px 2px;
    }
}


/* 📱 MOBILE */
@media (max-width: 768px) {

    .panel-heading {
        padding: 5px !important;
    }

    /* Lista de widgets vira grid responsivo */
    #widgets-list ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
    }

}


.nav-tabs > li:last-child a{
    border: none !important;
}

/* 📱 Tela muito pequena (até 480px) */
@media (max-width: 480px) {

   /* Garante que o container principal ocupe 100% da largura disponível */
    #widgets-list {
        width: 100%;
    }

    /* 📱 Estilos Responsivos para a Lista de Widgets (Dispositivos Móveis - Padrão) */
    #widgets-list ul {
        list-style: none; /* Remove marcadores de lista */
        padding: 0 !important; /* Remove o padding padrão da ul, que pode causar problemas de alinhamento */
        margin: 0 !important; /* Remove margem padrão */
        
        display: flex;
        flex-wrap: wrap; /* Permite que os itens quebrem para a próxima linha */
        justify-content: space-between; /* Espaça os itens uniformemente */
        gap: 10px; /* Adiciona um pequeno espaço entre os itens */
    }

    /* 📱 Estilos para cada Item do Widget em Celulares (2 itens por linha) */
    #widgets-list ul li {
        width: calc(50% - 5px); 
        margin-bottom: 0px; 
        flex-grow: 1; 
    }

    /* Estilo do Conteúdo dentro do Widget */
    #widgets-list .widget-item {
        display: flex;
        align-items: center;
        background-color: white; /* Cor de fundo para o widget, se necessário */
        padding: 5px;
        border-radius: 8px; /* Borda arredondada para o widget */
        height: 100%; /* Garante que todos os widgets tenham a mesma altura */
    }

    /* Estilo do Ícone (SVG) */
    #widgets-list .widget-item .icon {
        margin-right: 15px;
    }

    /* Estilo dos Textos */
    #widgets-list .widget-text p {
        font-size: 24px; /* Tamanho do número principal */
        font-weight: bold;
        margin: 0;
        line-height: 1.2;
    }

    #widgets-list .widget-text span {
        font-size: 14px; /* Tamanho do texto descritivo */
        color: #6c757d;
        display: block; /* Garante que o span ocupe sua própria linha */
        margin-top: 2px;
    }


    #controls-list {
        display: flex !important;
        flex-direction: column !important; /* Força o empilhamento no mobile */
        width: 100% !important;
        gap: 15px !important;
        margin-top: 10px !important; 
        box-sizing: border-box !important; /* Importante para garantir que padding não aumente a largura */
    }

    /* 1. Área de Pesquisa */
    #controls-list .panel-form {
        width: 100% !important;
    }

    #controls-list .input-search {
        width: 100% !important;
    }



    /* 2. Área de Controles e Filtros */
    #controls-list #controls {
        display: flex !important;
        flex-wrap: wrap !important; /* Permite a quebra de linha */
        width: 100% !important;
        gap: 10px !important;
        flex-direction: column;
        padding: 0 !important;
        border: none !important;
    }

    /* Dropdowns no Mobile (lado a lado) */
    #controls-list .order-dropdown {
        width: 100%;
    }

    /* Botões de visualização no Mobile (mantém o alinhamento correto) */
    #controls-list #select-view {
        margin-left: auto !important; 
        flex-shrink: 0 !important; /* Impede que seja espremido */
    }

    /* 3. Botão Novo Usuário no Mobile (100% de largura) */
    #controls-list #add-user-btn {
        width: 100% !important;
    }

    #controls-list .green-heading-btn {
        width: 100% !important;
        margin: 0 !important;
    }

    .order-dropdown button {
        width: 100% !important;
    }
    #select-view{
        display: none !important;
    }
    .nav-tabs > li:last-child {
        width: 100% !important;
    }
    .nav-tabs > li:last-child a{
        padding: 0px !important;
    }
    .panel-heading a{
        width: 100% !important;
    }
}

/* 🖥️ Media Query para Tablets e Desktops (4 itens por linha) */
@media (min-width: 768px) {
    #widgets-list ul {
        gap: 20px; /* Aumenta o espaço entre os widgets em telas maiores */
    }

    #widgets-list ul li {
        /* Calculo para 4 itens por linha: (100% - 3*20px de gap) / 4 = 25% (aproximadamente) */
        width: calc(25% - 15px); 
        margin-bottom: 0; /* Remove a margem inferior em desktops */
    }
}


#select-view .heading-btn[style*="opacity:0.4"] {
    pointer-events: none;
}

/* ── Barra de controles (global) ── */
#controls-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 0 4px;
    width: 100%;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.filters-row .panel-form {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0;
}

.filters-row .panel-form .form-group {
    margin: 0;
    flex: 1;
    min-width: 140px;
    max-width: 220px;
}

.filters-row .panel-form .form-group .form-control {
    width: 100%;
    margin: 0;
}

.filters-row #add-user-btn {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.filters-row #controls {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .filters-row {
        flex-wrap: wrap;
    }
    .filters-row .panel-form .form-group {
        min-width: 100%;
        max-width: 100%;
    }
    .filters-row #add-user-btn {
        width: 100%;
    }
    .filters-row #add-user-btn .green-heading-btn {
        width: 100%;
    }
}
.form-control{
    width: 98%;
    margin: 2px;
    height: 40px;
}
label{
    font-weight: bold;
}
.form-horizontal .form-group {
    margin:0px !important;
}

.btn-remove-item {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: #bbb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.btn-remove-item:hover {
    color: #e74c3c;
    background: #fff0f0;
    border-color: #f5c6c6;
}