.login-page{
    /* https://www.svgbackgrounds.com/set/free-svg-backgrounds-and-patterns/  -  Subtle Prism  FFFFFF to 007bff  */
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25'%3E%3Cdefs%3E%3ClinearGradient id='a' gradientUnits='userSpaceOnUse' x1='0' x2='0' y1='0' y2='100%25' gradientTransform='rotate(360,956,462)'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23004D9F'/%3E%3C/linearGradient%3E%3Cpattern patternUnits='userSpaceOnUse' id='b' width='300' height='250' x='0' y='0' viewBox='0 0 1080 900'%3E%3Cg fill-opacity='0.02'%3E%3Cpolygon fill='%23444' points='90 150 0 300 180 300'/%3E%3Cpolygon points='90 150 180 0 0 0'/%3E%3Cpolygon fill='%23AAA' points='270 150 360 0 180 0'/%3E%3Cpolygon fill='%23DDD' points='450 150 360 300 540 300'/%3E%3Cpolygon fill='%23999' points='450 150 540 0 360 0'/%3E%3Cpolygon points='630 150 540 300 720 300'/%3E%3Cpolygon fill='%23DDD' points='630 150 720 0 540 0'/%3E%3Cpolygon fill='%23444' points='810 150 720 300 900 300'/%3E%3Cpolygon fill='%23FFF' points='810 150 900 0 720 0'/%3E%3Cpolygon fill='%23DDD' points='990 150 900 300 1080 300'/%3E%3Cpolygon fill='%23444' points='990 150 1080 0 900 0'/%3E%3Cpolygon fill='%23DDD' points='90 450 0 600 180 600'/%3E%3Cpolygon points='90 450 180 300 0 300'/%3E%3Cpolygon fill='%23666' points='270 450 180 600 360 600'/%3E%3Cpolygon fill='%23AAA' points='270 450 360 300 180 300'/%3E%3Cpolygon fill='%23DDD' points='450 450 360 600 540 600'/%3E%3Cpolygon fill='%23999' points='450 450 540 300 360 300'/%3E%3Cpolygon fill='%23999' points='630 450 540 600 720 600'/%3E%3Cpolygon fill='%23FFF' points='630 450 720 300 540 300'/%3E%3Cpolygon points='810 450 720 600 900 600'/%3E%3Cpolygon fill='%23DDD' points='810 450 900 300 720 300'/%3E%3Cpolygon fill='%23AAA' points='990 450 900 600 1080 600'/%3E%3Cpolygon fill='%23444' points='990 450 1080 300 900 300'/%3E%3Cpolygon fill='%23222' points='90 750 0 900 180 900'/%3E%3Cpolygon points='270 750 180 900 360 900'/%3E%3Cpolygon fill='%23DDD' points='270 750 360 600 180 600'/%3E%3Cpolygon points='450 750 540 600 360 600'/%3E%3Cpolygon points='630 750 540 900 720 900'/%3E%3Cpolygon fill='%23444' points='630 750 720 600 540 600'/%3E%3Cpolygon fill='%23AAA' points='810 750 720 900 900 900'/%3E%3Cpolygon fill='%23666' points='810 750 900 600 720 600'/%3E%3Cpolygon fill='%23999' points='990 750 900 900 1080 900'/%3E%3Cpolygon fill='%23999' points='180 0 90 150 270 150'/%3E%3Cpolygon fill='%23444' points='360 0 270 150 450 150'/%3E%3Cpolygon fill='%23FFF' points='540 0 450 150 630 150'/%3E%3Cpolygon points='900 0 810 150 990 150'/%3E%3Cpolygon fill='%23222' points='0 300 -90 450 90 450'/%3E%3Cpolygon fill='%23FFF' points='0 300 90 150 -90 150'/%3E%3Cpolygon fill='%23FFF' points='180 300 90 450 270 450'/%3E%3Cpolygon fill='%23666' points='180 300 270 150 90 150'/%3E%3Cpolygon fill='%23222' points='360 300 270 450 450 450'/%3E%3Cpolygon fill='%23FFF' points='360 300 450 150 270 150'/%3E%3Cpolygon fill='%23444' points='540 300 450 450 630 450'/%3E%3Cpolygon fill='%23222' points='540 300 630 150 450 150'/%3E%3Cpolygon fill='%23AAA' points='720 300 630 450 810 450'/%3E%3Cpolygon fill='%23666' points='720 300 810 150 630 150'/%3E%3Cpolygon fill='%23FFF' points='900 300 810 450 990 450'/%3E%3Cpolygon fill='%23999' points='900 300 990 150 810 150'/%3E%3Cpolygon points='0 600 -90 750 90 750'/%3E%3Cpolygon fill='%23666' points='0 600 90 450 -90 450'/%3E%3Cpolygon fill='%23AAA' points='180 600 90 750 270 750'/%3E%3Cpolygon fill='%23444' points='180 600 270 450 90 450'/%3E%3Cpolygon fill='%23444' points='360 600 270 750 450 750'/%3E%3Cpolygon fill='%23999' points='360 600 450 450 270 450'/%3E%3Cpolygon fill='%23666' points='540 600 630 450 450 450'/%3E%3Cpolygon fill='%23222' points='720 600 630 750 810 750'/%3E%3Cpolygon fill='%23FFF' points='900 600 810 750 990 750'/%3E%3Cpolygon fill='%23222' points='900 600 990 450 810 450'/%3E%3Cpolygon fill='%23DDD' points='0 900 90 750 -90 750'/%3E%3Cpolygon fill='%23444' points='180 900 270 750 90 750'/%3E%3Cpolygon fill='%23FFF' points='360 900 450 750 270 750'/%3E%3Cpolygon fill='%23AAA' points='540 900 630 750 450 750'/%3E%3Cpolygon fill='%23FFF' points='720 900 810 750 630 750'/%3E%3Cpolygon fill='%23222' points='900 900 990 750 810 750'/%3E%3Cpolygon fill='%23222' points='1080 300 990 450 1170 450'/%3E%3Cpolygon fill='%23FFF' points='1080 300 1170 150 990 150'/%3E%3Cpolygon points='1080 600 990 750 1170 750'/%3E%3Cpolygon fill='%23666' points='1080 600 1170 450 990 450'/%3E%3Cpolygon fill='%23DDD' points='1080 900 1170 750 990 750'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect x='0' y='0' fill='url(%23a)' width='100%25' height='100%25'/%3E%3Crect x='0' y='0' fill='url(%23b)' width='100%25' height='100%25'/%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
}

.login-logo{
    padding: 2rem;
}

.login-logo img{
    max-width: 100%;
}

.login-box form{
    padding: 2rem 1rem;
}

.brand-text img{
    max-width: 100%;
    padding: 2rem 1rem;
}

/* .content-wrapper {
    background-color: #eaf2ff;
} */

.select2-selection__choice{
    padding-left: 5px!important;
    border-radius: 4px!important;
    background-color: #167bd9 !important;
}

.select2-selection {
    padding-left: 1rem;
}

.select2-selection__choice__display{
    padding-left: 15px!important;
    color: #ffffff !important;
}

.select2-selection__choice__remove{
    border: none!important;
    border-radius: 0!important;
    padding: 0 2px!important;
    background-color: transparent!important;
}

.select2-selection__choice__remove:hover{
    background-color: transparent!important;
    color: #ef5454 !important;
}

.select2-container--bootstrap4 .select2-selection--multiple {
    height: 8px; /* Example height to match Bootstrap input height */
}

.select2-container .select2-search--inline .select2-search__field {
    margin-left: 0px;
    margin-top: 10px;
    /* vertical-align: top; */
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
}

.card-header::after {
    display: none;
}

.col-00 {
    -ms-flex: 0 0 4.333333%;
    flex: 0 0 4.333333%;
    max-width: 2.333333%;
}

th a.asc::after {
  content: " ▲";
  font-size: 0.7em;
}
th a.desc::after {
  content: " ▼";
  font-size: 0.7em;
}

.brand-text {
    justify-content: center;
    display: flex;
}


/* ==============================
   CARDINAL: GRUPOS DE CAMPOS
   ============================== */
.field-group {
    background-color: #fefefe;        /* fundo quase branco, bem suave */
    border-radius: 12px;              /* cantos mais arredondados */
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* sombra suave para destacar */
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Efeito ao arrastar o grupo */
.field-group.dragging {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* Cabeçalho do grupo */
.field-group > .d-flex {
    background-color: #e9f5ff;      /* leve azul */
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;   /* cantos superiores arredondados */
    margin-bottom: 15px;
    border-bottom: 1px solid #cfe2ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-group > .d-flex button {
    margin-left: 5px;
}

/* Botões de grupo */
.field-group .duplicate-group {
    background-color: #0d6efd;
    color: #fff;
}

.field-group .remove-group {
    background-color: #dc3545;
    color: #fff;
}

/* Handle de grupo */
.field-group .handle {
    cursor: grab;
    font-size: 18px;
    color: #6c757d;
}


/* ==============================
   CAMPOS DENTRO DO GRUPO
   ============================== */
.group-fields .field-item {
    border: 1px dashed #ced4da; /* leve contraste com o grupo */
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #ffffff; /* branco puro para destacar */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Handle de campo */
.group-fields .field-item .handle {
    cursor: grab;
    color: #6c757d;
}

/* Input e selects alinhados */
.group-fields .field-item input,
.group-fields .field-item select,
.group-fields .field-item textarea {
    font-size: 0.9rem;
}

/* Botões duplicar/remover campo */
.group-fields .field-item .btn {
    margin-left: 5px;
}

/* Botão "Adicionar campo" dentro do grupo */
.add-field-to-group {
    margin-top: 10px;
    display: inline-block;
}

.field-group .group-fields .field-item {
    background-color: #f8f9fa;  /* fundo leve */
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* Botões duplicar/remover grupo */
.field-group .btn.duplicate-group,
.field-group .btn.remove-group {
    margin-left: 5px;
}

/* ==============================
   EFEITOS VISUAIS DE ARRASTE
   ============================== */
.field-group.dragging,
.field-item.dragging {
    opacity: 0.8;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Cursor para todos os handles */
.handle {
    cursor: grab;
}

/* ==============================
   RESPONSIVO
   ============================== */
@media (max-width: 768px) {
    .group-fields .field-item {
        flex-direction: column;
        gap: 5px;
    }

    .group-fields .field-item .col-1,
    .group-fields .field-item .col-2,
    .group-fields .field-item .col-3 {
        width: 100%;
    }
}

#fields-sortable li{
    list-style: none;
}

.field-group {
    background: #f9f9f9;
    border-left: 4px solid #0d6efd;
}
.field-group h5 {
    font-weight: 600;
}

/* ==============================
   AJUSTES PARA NOVO MARKUP
   ============================== */
.field-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background-color: #fff;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    transition: background-color 0.2s, border-color 0.2s;
}

.field-item:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
}

.field-item .handle {
    cursor: grab;
    color: #6c757d;
    font-size: 1.2rem;
    margin-right: 10px;
    padding-top: 5px;
}

.field-item .field-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.field-item .field-body label {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 4px;
}

.field-item .field-body .form-control {
    border-radius: 6px;
    box-shadow: none;
}

.field-item .field-actions {
    display: flex;
    align-items: center;
}

.field-item .field-actions .btn {
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Estado de arraste */
.field-item.dragging {
    opacity: 0.8;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.cke_notifications_area{
    display: none !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple, .select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    outline: 0;
    padding: .45rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
}