.card .card-title {
    font-weight: 600;
}

select.select2-hidden-accessible[readonly] + .select2-container > .selection > .select2-selection {
    background-color: #e9ecef !important;
    box-shadow: none;
}

select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
}

select.is-invalid ~ .select2-container.select2-selection,
form.was-validated select:invalid ~ .select2-container .select2-selection {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%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(1.5rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

select.is-valid ~ .select2-container .select2-selection,
form.was-validated select:valid ~ .select2-container .select2-selection {
    border-color: #28a745;
    padding-right: calc(1.5em + .75rem);
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-position: right calc(1.5rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

form.was-validated textarea:invalid ~ .note-editor {
    border: 1px solid #dc3545;
}

.form-group label {
    font-weight: 400 !important;
}

.input-valid {
    border: 1px solid #28a745 !important;
}

.input-invalid {
    border: 1px solid #DC3545 !important;
}

.select2-disabled {
    background-color: #e9ecef !important;
}

.form-group:has(input:required) label:after {
    content: '*';
    display: inline-block;
    position: relative;
    right: -1px;
    color: #DC3545;
}

.form-group:has(textarea:required) label:after {
    content: '*';
    display: inline-block;
    position: relative;
    right: -1px;
    color: #DC3545;
}

.form-group:has(select:required) label:after {
    content: '*';
    display: inline-block;
    position: relative;
    right: -1px;
    color: #DC3545;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:has(.bg-success) {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.captcha {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.captcha legend {
    font-size: 1rem;
    font-weight: 400;
}

.captcha input {
    margin-top: 0.75rem;
}

.gap-10 {
    gap: 10px !important;
}

.gap-100 {
    gap: 3rem !important;
}

.invalid-feedbacks {
    padding: 0;
    font-size: .8rem;
    color: #dc3545;
}

.captcha fieldset {
    width: 100%;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.form-group legend {
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.ux-radio-option {
    gap: .8rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

fieldset:has(.ux-radio-option) {
    display: flex;
    gap: 1rem;
}

.was-validated .form-group:has(input:invalid) .invalid-feedback
{
    display: block;
}

.was-validated .form-group:has(input:invalid) .kv-fileinput-caption
{
    border-top-color: #DC3545;
    border-left-color: #dc3545;
    border-bottom-color: #dc3545;
}

.was-validated .form-group:has(input:invalid) .file-preview
{
    border-color: #DC3545;
}

.hidden {
    display: none !important;
}
.note-btn > span.note-icon-caret:nth-child(2) {
    display: none;
}

.table-responsive {
    overflow-x: hidden;
    width: 100%;
}

.table-responsive table {
    overflow-x: auto;
}

.note-editor .dropdown-toggle::after {
    display: none;
}

@media (max-width: 992px) {
    .card-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .5rem;
    }
}

@media (max-width: 992px) {
    .table-responsive table{
        display: block;
    }

    .table-responsive .bottom {
        display: flex;
        flex-direction: column-reverse;
        font-size: .8rem;
    }

    .table-responsive .bottom .bottom-page-info {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .table-responsive .bottom .dataTables_length {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
}

.card-header::after {
    display: none;
}

.minimal-row {
    display: flex;
    flex-direction: column;
    margin-left: 0 !important;
}

.minimal {
    margin-left: 0.5rem;
}

.minimal input[type="radio"] {
    margin-right: 0.3rem;
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--radio-blue);
    border-radius: 50%;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s ease;
}

/* círculo interno */
.minimal input[type="radio"]::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--radio-blue);
    transform: scale(0);
    transition: transform 0.15s ease-in-out;
}

:root {
    --radio-blue: #60a5fa;     /* azul suave */
    --radio-blue-hover: #2563eb;  /* um pouco mais forte */
    --radio-blue-shadow: rgba(59, 130, 246, 0.35);
}

/* marcado */
.minimal input[type="radio"]:checked::before {
    transform: scale(1);
}

/* hover */
.minimal input[type="radio"]:hover {
    border-color: var(--radio-blue-hover);
}

/* foco acessível */
.minimal input[type="radio"]:focus-visible {
    outline: 3px solid var(--radio-blue-shadow);
    outline-offset: 3px;
}

/* desabilitado */
.minimal input[type="radio"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.minimal input[type="checkbox"] {
    margin-right: 0.3rem;
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--radio-blue);
    border-radius: 6px;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s ease;
}

/* check */
.minimal input[type="checkbox"]::before {
    content: "";
    width: 0.4rem;
    height: 0.6rem;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease-in-out;
}

/* marcado */
.minimal input[type="checkbox"]:checked {
    background-color: var(--radio-blue);
}

.minimal input[type="checkbox"]:checked::before {
    transform: rotate(45deg) scale(1);
}

/* hover */
.minimal input[type="checkbox"]:hover {
    border-color: var(--radio-blue-hover);
}

/* foco acessível */
.minimal input[type="checkbox"]:focus-visible {
    outline: 3px solid var(--radio-blue-shadow);
    outline-offset: 3px;
}

/* desabilitado */
.minimal input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}