@media print {
    #sidebar{
        display: none;
    }

}

.ck-editor__editable,
textarea {
    min-height: 150px;
}

dl li, ol li, ul li{
    line-height: 1.8;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}



.select2.select2-container .select2-selection {
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    height: 34px !important;
    /* margin-bottom: 15px; */
    outline: none !important;
    transition: all .15s ease-in-out;
  }

  .select2.select2-container .select2-selection .select2-selection__rendered {
    color: #333;
    line-height: 32px;
    padding-right: 33px;
  }

  .select2.select2-container .select2-selection .select2-selection__arrow {
    background: #f8f8f8;
    border-left: 1px solid #ccc;
    -webkit-border-radius: 0 3px 3px 0;
    -moz-border-radius: 0 3px 3px 0;
    border-radius: 0 3px 3px 0;
    height: 32px;
    width: 33px;
  }

  .select2.select2-container.select2-container--open .select2-selection.select2-selection--single {
    background: #f8f8f8;
  }

  .select2.select2-container.select2-container--open .select2-selection.select2-selection--single .select2-selection__arrow {
    -webkit-border-radius: 0 3px 0 0;
    -moz-border-radius: 0 3px 0 0;
    border-radius: 0 3px 0 0;
  }

  .select2.select2-container.select2-container--open .select2-selection.select2-selection--multiple {
    border: 1px solid #34495e;
  }

  .select2.select2-container .select2-selection--multiple {
    height: auto;
    min-height: 34px;
  }

  .select2.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 0;
    height: 32px;
  }

  .select2.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
    padding: 0 4px;
    line-height: 29px;
  }


  .select2.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {

    color: #e74c3c;

    /* position: absolute;
    top: 0;
    left: 0; */
    height: 22px;
    width: 22px;
    margin: 0;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
  }

  .select2-container .select2-dropdown {
    background: transparent;
    border: none;
    margin-top: -5px;
  }

  .select2-container .select2-dropdown .select2-search {
    padding: 0;
  }

  .select2-container .select2-dropdown .select2-search input {
    outline: none !important;
    border: 1px solid #34495e !important;
    border-bottom: none !important;
    padding: 4px 6px !important;
  }

  .select2-container .select2-dropdown .select2-results {
    padding: 0;
  }

  .select2-container .select2-dropdown .select2-results ul {
    background: #fff;
    border: 1px solid #34495e;
  }

  .select2-container .select2-dropdown .select2-results ul .select2-results__option--highlighted[aria-selected] {
    background-color: #3498db;
  }


  .bg-removed{
    background-color: #f2dede !important;
    color:#000;

}

.bg-checked{
    background-color: #ddffef !important;
    color:#000;
}


.bg-custom-1{
    background-color: #8209f3 !important;
    color:#000;
}

.bg-custom-2{
    background-color: #ff7b00 !important;
    color:#000;
}

.c-sidebar .c-sidebar-brand, .c-sidebar .c-sidebar-header{
    background: #f5f5f5 !important;
    padding: 15px 0px;
}


.c-sidebar-nav-icon {
    -ms-flex: 0 0 40px !important;
    flex: 0 0 40px !important;

}

@media (min-width: 992px){
    .modal-lg, .modal-xl {
        max-width: 980px !important
    }
}

.c-sidebar-nav-dropdown-toggle, .c-sidebar-nav-link{
    padding: .6445rem 1rem !important  ;
}


.color-blue1 {
    color: #3498db;
}

.color-purple {
    color: #894eb9 !important;
}

.color-danger {
    color: #FF7588 !important;
}

.color-orange{
    color: #ff7b00 !important;
}
.color-green{
    color: #16D39A !important;
}

.context-menu {
    /* margin-top: 0px; */
    margin-right: 20px;
    float:right;
    text-align: right;
}

.context-menu a{
    color: #3c4b64;
    /* padding: 3px 10px 3px 0px; */

}

.c-sidebar-nav-dropdown .c-sidebar-nav-item .c-sidebar-nav-link{
    padding-left: 56px !important;
}

.context-menu a:hover{
    text-decoration: underline;
}

/* Estilização do Dropzone */
.drop-zone-boleto {
    border: 2px dashed #007bff; /* Borda azul tracejada */
    background: #f8f9fa; /* Fundo levemente cinza */
    border-radius: 10px; /* Bordas arredondadas */
    text-align: center;
    padding: 50px;
    position: relative;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* Hover e quando o usuário arrasta um arquivo */
.drop-zone-boleto:hover,
.drop-zone-boleto.dz-drag-hover {
    background: #e9ecef; /* Fundo um pouco mais escuro */
    border-color: #0056b3; /* Azul mais escuro */
}

/* Ícone de Upload */
.drop-zone-boleto::before {
    content: "\f093"; /* Ícone de upload do FontAwesome */
    font-family: "Font Awesome 5 Free"; /* Para ícones FontAwesome */
    font-weight: 900;
    font-size: 40px;
    color: #007bff;
    display: block;
    margin-bottom: 10px;
}

/* Mensagem Central */
.drop-zone-boleto .dz-message {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    text-align: center;
}

/* Itens dentro do Dropzone */
.drop-zone-boleto .dz-preview {
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease-in-out;
}

/* Nome do Arquivo */
.drop-zone-boleto .dz-filename {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Tamanho do Arquivo */
.drop-zone-boleto .dz-size {
    font-size: 12px;
    color: #666;
}

/* Ícone de Excluir */
.drop-zone-boleto .dz-remove {
    color: #dc3545;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.drop-zone-boleto .dz-remove:hover {
    background: #dc3545;
    color: white;
}

/* Barra de Progresso */
.drop-zone-boleto .dz-progress {
    background: #007bff;
    height: 5px;
    border-radius: 5px;
    margin-top: 5px;
}

.remove-department{
    margin-top: 28px !important;
}

/*
===============================================================================
SISTEMA DE CORES DA SIDEBAR POR AMBIENTE
===============================================================================
Este sistema detecta automaticamente o ambiente baseado no hostname e aplica
cores diferentes para a sidebar:

AMBIENTE DE TESTE (sidebar vermelha):
- localhost (desenvolvimento local)
- pps-teste.lavestsaude.com.br (servidor de teste)

AMBIENTE DE PRODUÇÃO (sidebar azul padrão):
- Qualquer outro hostname (produção)

As cores ajudam a identificar visualmente o ambiente atual e evitar confusões.
===============================================================================
*/

/* Cores da sidebar baseadas no ambiente */
/* Ambiente de produção - cor padrão (mantém o atual) */
.environment-production .c-sidebar {
    /* background-color: #3c4b64 !important;  */
}

.environment-production .c-sidebar .c-sidebar-brand,
.environment-production .c-sidebar .c-sidebar-header {
   /* background: #236aa3 !important; */ /* Cor mais escura para o header */
}

.environment-production .c-sidebar-nav-link {
    color: #c8d1da !important;
}

.environment-production .c-sidebar-nav-link:hover {
    background-color: #495166 !important;
    color: #ffffff !important;
}

/* Ambiente de teste/desenvolvimento - cor diferenciada */
.environment-test .c-sidebar {
    background-color: #3c8ce7 !important; /* Cor vermelha para teste */
    background-image: none !important;
}

.environment-test .c-sidebar .c-sidebar-brand,
.environment-test .c-sidebar .c-sidebar-header {
    background: #236aa3 !important; /* Cor mais escura para o header */
    background-image: none !important;
}

.environment-test .c-sidebar-nav-link {
    color: #fdf2f2 !important;
}

.environment-test .c-sidebar-nav-link:hover {
    background-color: #236aa3 !important;
    color: #ffffff !important;
}

.environment-test .c-sidebar-nav-link.c-active {
    background-color: #236aa3 !important;
    color: #ffffff !important;
}

.environment-test .c-sidebar-nav-dropdown-toggle {
    color: #fdf2f2 !important;
}

.environment-test .c-sidebar-nav-dropdown-toggle:hover {
    background-color: #236aa3 !important;
    color: #ffffff !important;
}

.environment-test .c-sidebar-nav-dropdown.c-show {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.environment-test .c-sidebar-nav-dropdown .c-sidebar-nav-item .c-sidebar-nav-link {
    color: #fdf2f2 !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.environment-test .c-sidebar-nav-dropdown .c-sidebar-nav-item .c-sidebar-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* Badge de identificação no header para ambiente de teste */
.environment-test .c-header::before {
    content: "AMBIENTE DE TESTE";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #c44310;
    color: white;
    padding: 2px 15px;
    font-size: 11px;
    font-weight: bold;
    z-index: 1000;
    border-radius: 0 0 5px 5px;
}
