html,
body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #e2effd;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    /* overflow-x: hidden; */
}

body {
    font-family: Arial, sans-serif;
}

.main-container {
    min-height: 600px;
    max-width: 1000px;
    margin: 10px auto 0 auto;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    border: 1.5px solid #e2effd;
    box-shadow: 0 6px 32px 0 rgba(13, 110, 253, 0.10), 0 1.5px 6px 0 rgba(34, 36, 38, 0.08);
    transition: box-shadow 0.3s, border 0.3s;
}

.main-container:hover {
    box-shadow: 0 12px 40px 0 rgba(13, 110, 253, 0.16), 0 2px 8px 0 rgba(34, 36, 38, 0.12);
    border: 1.5px solid #b6d8fa;
}

.container-filtro {
    border: 1px solid #ccc;
    border-radius: 8px;
    opacity: 0.8;
    margin-top: 20px;
    padding: 10px;
}

/* ---------- Bloco para sections e blocos de dados */
.bloco-ct {
    background: linear-gradient(270deg, #fafdff 80%, #e8f3fb 100%);
    border-radius: 1rem;
    border: 1.5px solid #e2effd;
    box-shadow: 0 2px 12px 0 rgba(13, 110, 253, 0.07);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
}

.bloco-ct:focus-within {
    box-shadow: 0 4px 24px 0 rgba(13, 110, 253, 0.13);
    border-color: #b6d8fa;
}

.bloco-ct:last-child {
    margin-bottom: 0;
}

.bloco-titulo {
    font-size: 1.08rem;
    font-weight: 600;
    color: #2263a8;
    letter-spacing: 0.02em;
}

/* ---------- Inputs, Labels */
.input-group-ct {
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 1px 4px 0 rgba(44, 62, 80, 0.06);
    background: #fff;
}

.input-ct {
    border: 1.5px solid #b6d8fa;
    border-radius: 0.8rem;
    font-size: 1.05rem;
    padding: 0.55rem 1rem;
    line-height: 1.5;
    min-height: 2.675rem;
    background-color: #fafdff;
    color: #2263a8;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.input-ct:focus {
    border-color: #2263a8;
    box-shadow: 0 0 0 2px #b6d8fa;
    background-color: #fff;
    color: #0d6efd;
}

/* Placeholder personalizado para inputs */
.input-ct::placeholder {
    color: #2263a8;
    opacity: 1;
}

.input-ct::-webkit-input-placeholder {
    color: #2263a8;
}

.input-ct::-moz-placeholder {
    color: #2263a8;
    opacity: 1;
}

.input-ct:-ms-input-placeholder {
    color: #2263a8;
}

@media (max-width: 768px) {
    .input-group-ct {
        margin-bottom: 1rem;
    }
}

/* ----- */
/* ----- Selects - Select2 customizado */
.select2-container--default .select2-results__option--selected {
    background: #e2effd !important;
    color: #14375a !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1.5px solid #b6d8fa;
    border-radius: 0.8rem;
    padding: 0.55rem 2.5rem 0.55rem 1rem;
    font-size: 1.05rem;
    line-height: 1.5;
    min-height: 2.675rem;
    color: #2263a8;
    background-color: #fafdff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px 0 rgba(13, 110, 253, 0.07);
    width: 100%;
    display: block;
    cursor: pointer;
    box-sizing: border-box;
    height: 2.675rem;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
    border-color: #2263a8;
    outline: 0;
    box-shadow: 0 0 0 2px #b6d8fa;
    background-color: #fff;
    color: #0d6efd;
}

.select2-container--default .select2-selection--single:hover:not(:disabled):not(:focus),
.select2-container--default .select2-selection--multiple:hover:not(:disabled):not(:focus) {
    border-color: #0d6efd;
    background-color: #fff;
    box-shadow: 0 2px 12px 0 rgba(13, 110, 253, 0.08);
}

.select2-container--default .select2-selection--single.select2-selection--disabled,
.select2-container--default .select2-selection--multiple.select2-selection--disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
    opacity: 0.65;
    cursor: not-allowed;
}

.select2-container--default .select2-selection--single.is-invalid,
.select2-container--default .select2-selection--multiple.is-invalid {
    border-color: #dc3545;
}

.select2-container--default .select2-selection--single.is-invalid:focus,
.select2-container--default .select2-selection--multiple.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.select2-container--default .select2-selection--single.is-valid,
.select2-container--default .select2-selection--multiple.is-valid {
    border-color: #198754;
}

.select2-container--default .select2-selection--single.is-valid:focus,
.select2-container--default .select2-selection--multiple.is-valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.25);
}

/* Ajuste do dropdown do Select2 para combinar com o sistema */
.select2-container--default .select2-dropdown {
    border-radius: 0.8rem;
    border: 1.5px solid #b6d8fa;
    box-shadow: 0 2px 12px 0 rgba(13, 110, 253, 0.07);
    background: #fafdff;
    color: #2263a8;
    font-size: 1.05rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #e2effd;
    color: #0d6efd;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #b6d8fa;
    color: #14375a;
}

.select2-container--default .select2-selection__rendered {
    color: #2263a8;
    font-size: 1.05rem;
    line-height: 2.2rem;
}

.select2-container--default .select2-selection__arrow {
    height: 2.675rem;
    width: 2.2rem;
    top: 0;
    bottom: 0;
    right: 0.2rem;
    margin: auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    pointer-events: none;
}

.select2-container--default .select2-selection__placeholder {
    color: #2263a8;
    opacity: 1;
}


.select2-container {
    width: 100% !important;
    min-width: 0;
}

.select2-container--default .select2-selection--single {
    border: 1.5px solid #b6d8fa;
    border-radius: 0.8rem;
    background: #fafdff;
    color: #2263a8;
    font-size: 1.05rem;
    min-height: 2.675rem;
    height: 2.675rem;
    padding: 0.55rem 2.2rem 0.55rem 1rem;
    box-shadow: 0 2px 12px 0 rgba(13, 110, 253, 0.07);
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #2263a8;
    box-shadow: 0 0 0 2px #b6d8fa;
    background: #fff;
    color: #0d6efd;
    outline: none;
}

.select2-container--default .select2-selection--single:hover:not(:disabled):not(:focus) {
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 2px 12px 0 rgba(13, 110, 253, 0.08);
}

.select2-container--default .select2-selection--single.select2-selection--disabled {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
    opacity: 0.65;
    cursor: not-allowed;
}

.select2-container--default .select2-selection--single.is-invalid {
    border-color: #dc3545;
}

.select2-container--default .select2-selection--single.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.select2-container--default .select2-selection--single.is-valid {
    border-color: #198754;
}

.select2-container--default .select2-selection--single.is-valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.25);
}

.select2-container--default .select2-selection__rendered {
    color: #2263a8;
    font-size: 1.05rem;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.select2-container--default .select2-selection__arrow {
    height: 100%;
    width: 2.2rem;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    pointer-events: none;
}

.select2-container--default .select2-selection__placeholder {
    color: #2263a8;
    opacity: 1;
}

/* Dropdown (options) */
.select2-container--default .select2-dropdown {
    border-radius: 0 0 0.8rem 0.8rem;
    border: 1.5px solid #b6d8fa;
    box-shadow: 0 2px 12px 0 rgba(13, 110, 253, 0.07);
    background: #fafdff;
    color: #2263a8;
    font-size: 1.05rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #b6d8fa !important;
    color: #14375a !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #e2effd;
    color: #14375a;
}

@media (max-width: 576px) {
    .select2-container--default .select2-selection--single {
        font-size: 16px;
        padding: 0.55rem 2.2rem 0.55rem 0.75rem;
        min-height: 2.675rem;
        height: 2.675rem;
    }

    .select2-container--default .select2-selection__rendered {
        font-size: 16px;
    }
}


/* ---------- Alerta (SweetAlert2) */
.swal2-popup {
    border-radius: 1.2rem !important;
}

.swal2-confirm {
    background: linear-gradient(90deg, #0d6efd 80%, #3b82f6c2 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.6rem !important;
    min-width: 120px !important;
    box-shadow: 2px 3px 4px 0px rgb(100 100 100 / 31%) !important;
}


/* ----- */
/* ---------- Tabelas */
.table-ct {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0px 4px 4px 1px rgba(13, 110, 253, 0.08);
    border-collapse: separate;
    border-spacing: 0;
}

@media (max-width: 576px) {
    .table-ct {
        border-radius: 0.75rem;
    }
}

/* ----- Header */
.table-thead-ct th {
    background: linear-gradient(0deg, #f8fbff 0%, #e2effd 100%);
    color: #14375a;
    font-weight: 600;
    border-bottom: 1px solid #d1e7fc;
    font-size: 1.05rem;
    letter-spacing: 0.1px;
    padding: 1.1rem 1rem;
    position: relative;
    text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 2px 0 rgba(13, 110, 253, 0.04);
    transition: all 0.15s ease;
}

.table-thead-ct th:hover {
    background: linear-gradient(0deg, #f0f8ff 0%, #d8ebfc 100%);
    color: #0d4a7a;
    box-shadow: 0 1px 3px 0 rgba(13, 110, 253, 0.06);
    border-bottom-color: #b6d8fa;
}

/* Separadores mínimos entre colunas */
.table-thead-ct th:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 0;
    width: 1px;
    height: 40%;
    background: rgba(182, 216, 250, 0.25);
}

.table-thead-ct th:first-child {
    border-radius: 14px 0 0 0;
}

.table-thead-ct th:last-child {
    border-radius: 0 14px 0 0;
}

.table-thead-ct th:last-child::after {
    display: none;
}

.table-ct th.table-active {
    background: linear-gradient(90deg, #eaf4fb 0%, #d6e6f7 60%, #fafdff 100%);
    color: #14375a;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: none;
    box-shadow: 0 1px 4px 0 rgba(13, 110, 253, 0.04);
    text-transform: none;
    padding: 0.65rem 0.5rem;
    text-align: center;
    text-shadow: 0 1px 2px rgba(182, 216, 250, 0.10);
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .table-thead-ct th {
        padding: 0.9rem 0.7rem;
        font-size: 1rem;
        letter-spacing: 0.05px;
    }

    .table-thead-ct th:first-child,
    .table-thead-ct th:last-child {
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    .table-thead-ct th {
        padding: 0.8rem 0.6rem;
        font-size: 0.95rem;
        letter-spacing: 0;
    }

    .table-thead-ct th:not(:last-child)::after {
        display: none;
    }
}

/* ----- Body */
.table-ct tbody tr {
    transition: background 0.4s cubic-bezier(.4, 0, .2, 1);
    vertical-align: middle;
    min-height: 66px;
}

.table-ct tbody tr:nth-child(even) {
    background: #f7fbfd;
}

.table-ct tbody tr:nth-child(odd) {
    background: transparent;
}

.table-ct td {
    color: #14375a;
    font-size: 1rem;
    vertical-align: middle;
    padding: 0.85rem 0.75rem;
}

.table-ct td:last-child,
.table-ct th:last-child {
    text-align: center;
}

/* ----- Botão de ação */
.tabela-acao-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 251, 255, 0.6) 100%);
    border: 1px solid rgba(182, 216, 250, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) ease-in-out;
    box-shadow: 0 1px 3px 0 rgba(13, 110, 253, 0.06);
    position: relative;
    overflow: hidden;
}

.tabela-acao-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease-in-out;
}

.tabela-acao-btn:hover::before {
    left: 100%;
}

.tabela-acao-btn i {
    color: #3b82f6;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.tabela-acao-btn:hover,
.tabela-acao-btn:focus {
    background: #fff;
    border-color: #bfa046;
    box-shadow: 0 2px 8px 0 rgba(191, 160, 70, 0.14), 0 1px 3px 0 rgba(191, 160, 70, 0.10);
    text-decoration: none;
}

.tabela-acao-btn:hover i,
.tabela-acao-btn:focus i {
    color: #a8862a;
    transform: scale(1.1);
    text-shadow: 0 1px 2px rgba(13, 110, 253, 0.2);
}

.tabela-acao-btn:active {
    box-shadow: 0 1px 3px 0 rgba(13, 110, 253, 0.06);
}

/* ----- */
/* ---------- Paginação */
.btn-paginacao {
    background-color: #f8f9fa;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    margin: 0 8px;
}

.btn-paginacao:disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    border-color: #adb5bd;
    cursor: not-allowed;
}

.btn-paginacao:hover:not(:disabled) {
    background-color: #0d6efd;
    color: #fff;
}

#paginacao {
    margin-top: 24px;
}

#infoPaginacao {
    font-weight: 500;
    color: #495057;
}

.btn-paginacao-numero {
    background-color: #fff;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-weight: 500;
    margin: 0 2px;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.btn-paginacao-numero.active,
.btn-paginacao-numero:hover:not(:disabled) {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.12);
}

.btn-paginacao-numero:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}



/* ----- */
/* ---------- Titulo da página */

.page-title {
    color: #14375a;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
    .page-title {
        font-size: 1.6rem !important;
        margin-bottom: -10px !important;
    }
}

.page-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #dee2e6 50%, transparent 100%);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

/* ----- */
/* ---------- Botões */

/* ----- Primary */
.btn-primary {
    background: linear-gradient(90deg, #0d6efd 80%, #3b82f6c2 100%) !important;
    color: #fff !important;
    transition: color 0.7s cubic-bezier(.4, 0, .2, 1), box-shadow 0.7s cubic-bezier(.4, 0, .2, 1);
}

.btn-primary::before {
    background: linear-gradient(90deg, #14375a 80%, #1d4b77 100%);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #f7c873 !important;
}

/* ----- Secondary */
.btn-secondary {
    background: linear-gradient(90deg, #e2effd 80%, #b6d8fa 100%) !important;
    color: #14375a !important;
    box-shadow: 0 2px 8px 0 rgba(13, 110, 253, 0.08);
    transition:
        background 0.7s cubic-bezier(.4, 0, .2, 1),
        color 0.7s cubic-bezier(.4, 0, .2, 1),
        box-shadow 0.7s cubic-bezier(.4, 0, .2, 1);
}

.btn-secondary::before {
    background: linear-gradient(90deg, #b6d8fa 80%, #86b7fe 100%);
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: #14375a !important;
}

/* ----- Tertiary */
.btn-tertiary {
    background: linear-gradient(90deg, #ffdde0 60%, #fff5f6 100%) !important;
    color: #d32f2f;
    box-shadow: 0 2px 12px 0 rgba(211, 47, 47, 0.10);
    transition:
        background 0.7s cubic-bezier(.4, 0, .2, 1),
        color 0.7s cubic-bezier(.4, 0, .2, 1),
        box-shadow 0.7s cubic-bezier(.4, 0, .2, 1);
}

.btn-tertiary::before {
    background: linear-gradient(90deg, #f8d7da 60%, #f5c2c7 100%);
}

.btn-tertiary:hover,
.btn-tertiary:focus {
    color: #a41e22 !important;
}

/* ----- Quartenary */
.btn-quartenary {
    background: linear-gradient(90deg, #ffead3 80%, #fbd2b0 100%) !important;
    color: #7c4f1d;
    box-shadow: 2px 2px 3px 1px rgba(124, 79, 29, 0.26);
    opacity: 0.96;
    transition:
        background 0.7s cubic-bezier(.4, 0, .2, 1),
        color 0.7s cubic-bezier(.4, 0, .2, 1),
        box-shadow 0.7s cubic-bezier(.4, 0, .2, 1);
}

.btn-quartenary::before {
    background: linear-gradient(90deg, #ffdc9c 80%, #ffe5b4 100%);
}

.btn-quartenary:hover,
.btn-quartenary:focus {
    color: #5a3a15 !important;
}

/* Transição dos botões */
.btn-quartenary i,
.btn-tertiary i,
.btn-secondary i,
.btn-primary i {
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    z-index: 1;
}

.btn-quartenary span,
.btn-tertiary span,
.btn-secondary span,
.btn-primary span,
.btn-quartenary,
.btn-tertiary,
.btn-secondary,
.btn-primary {
    position: relative;
    z-index: 1;
}

.btn-quartenary:hover i,
.btn-tertiary:hover i,
.btn-secondary:hover i,
.btn-primary:hover i {
    transform: scale(1.18);
}

.btn-quartenary,
.btn-tertiary,
.btn-secondary,
.btn-primary {
    min-width: 120px;
    white-space: nowrap;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-tertiary:disabled,
.btn-quartenary:disabled,
.btn-primary[disabled],
.btn-secondary[disabled],
.btn-tertiary[disabled],
.btn-quartenary[disabled] {
    opacity: 0.85 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.18) brightness(1.04);
    text-shadow: 0 1px 0 #fff, 0 0 2px #e2effd;
}

.btn-primary:disabled i,
.btn-secondary:disabled i,
.btn-tertiary:disabled i,
.btn-quartenary:disabled i {
    filter: grayscale(0.5) brightness(1.1);
    opacity: 0.85;
}

.btn-primary,
.btn-secondary,
.btn-tertiary,
.btn-quartenary {
    border: none;
    border-radius: .7rem;
    font-weight: 600;
    padding: 0.6rem 1.6rem;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 2px 3px 4px 0px rgb(100 100 100 / 31%);
}

.btn-primary::before,
.btn-secondary::before,
.btn-tertiary::before,
.btn-quartenary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1);
    z-index: 0;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-tertiary:hover,
.btn-tertiary:focus,
.btn-quartenary:hover,
.btn-quartenary:focus {
    box-shadow: 2px 3px 3px 1px rgb(100 100 100 / 31%);
    outline: none;
}

.btn-primary:hover::before,
.btn-primary:focus::before,
.btn-secondary:hover::before,
.btn-secondary:focus::before,
.btn-tertiary:hover::before,
.btn-tertiary:focus::before,
.btn-quartenary:hover::before,
.btn-quartenary:focus::before {
    opacity: 1;
}

@media (max-width: 575.98px) {

    .btn-primary,
    .btn-secondary,
    .btn-tertiary,
    .btn-quartenary {
        width: 100%;
        display: block;
        font-size: 1.08rem;
        margin-bottom: 0.5rem;
    }
}

/* ----- Voltar */
.btn-voltar {
    width: auto !important;
    min-width: 120px;
    display: inline-block;
    font-size: 1.08rem;
    padding: 0.6rem 1.4rem;
    border-radius: .7rem;
    margin-bottom: 0;
    box-shadow: 0 2px 8px 0 rgba(13, 110, 253, 0.08);
    font-weight: 600;
    transition:
        background 0.9s cubic-bezier(.4, 0, .2, 1),
        color 0.9s cubic-bezier(.4, 0, .2, 1),
        box-shadow 0.9s cubic-bezier(.4, 0, .2, 1),
        transform 0.35s cubic-bezier(.4, 0, .2, 1);
}

.btn-voltar:hover,
.btn-voltar:focus {
    color: #14375a;
    box-shadow: 0 4px 16px 0 rgba(13, 110, 253, 0.13);
}

.btn-voltar:hover i {
    transition: transform 0.4s (.4, 0, .2, 1);
}

@media (max-width: 767.98px) {
    .btn-voltar {
        width: 100% !important;
        display: block;
        font-size: 1.08rem;
        margin-bottom: 0.5rem;
        box-shadow: 0 2px 8px 0 rgba(13, 110, 253, 0.08);
    }

    .page-title {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
}


/* ----- Loading button */
.btn-icon {
    transition: transform 0.3s;
}

.icon-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}


/* ----- Botão referente no visualizar */
.btn-documento-referente {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    font-size: 1rem;
    color: #3b82f6;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 251, 255, 0.6) 100%);
    border: 1px solid rgba(182, 216, 250, 0.3);
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(13, 110, 253, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: none;
}

.btn-documento-referente::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease-in-out;
}

.btn-documento-referente:hover::before {
    left: 100%;
}

.btn-documento-referente i {
    color: #3b82f6;
    font-size: 1.1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.btn-documento-referente:hover,
.btn-documento-referente:focus {
    background: #fff;
    color: #a8862a;
    border-color: #bfa046;
    box-shadow: 0 2px 8px 0 rgba(191, 160, 70, 0.14), 0 1px 3px 0 rgba(191, 160, 70, 0.10);
    text-decoration: none;
}

.btn-documento-referente:hover i,
.btn-documento-referente:focus i {
    color: #bfa046;
    text-shadow: 0 1px 2px rgba(13, 110, 253, 0.2);
}

/* ---------- Badges */
.badge-total {
    background: linear-gradient(135deg, #e2effd 0%, #f0f8ff 100%);
    color: #14375a;
    font-weight: 700;
    border-radius: 0.6rem;
    padding: 0.2em 0.8em;
    margin-left: 0.5em;
    font-size: 1.02rem;
    box-shadow:
        0 2px 8px 0 rgba(13, 110, 253, 0.12),
        0 1px 3px 0 rgba(34, 99, 168, 0.08);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    min-width: 2.5em;
    justify-content: center;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-total::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.badge-total:hover::before {
    left: 100%;
}

.badge-total:hover {
    background: linear-gradient(135deg, #d1e7fc 0%, #e8f3fb 100%);
    border-color: rgba(182, 216, 250, 0.6);
}

.badge-status-ativo,
.badge-status-inativo {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.35em 0.8em;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(13, 110, 253, 0.06);
    min-width: 4.5em;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-status-ativo {
    background: linear-gradient(180deg, #e9ffee 0%, #d4edda 100%);
    color: #0a5d2e;
    border: 1px solid rgba(25, 135, 84, 0.15);
}

.badge-status-inativo {
    background: linear-gradient(180deg, #ffe9e9 0%, #f8d7da 100%);
    color: #8b1e28;
    border: 1px solid rgba(220, 53, 69, 0.15);
}

.badge-status-ativo:hover {
    background: linear-gradient(180deg, #d1e7dd 0%, #c3e6cb 100%);
    box-shadow: 0 2px 6px 0 rgba(25, 135, 84, 0.10);
    border-color: rgba(25, 135, 84, 0.25);
}

.badge-status-inativo:hover {
    background: linear-gradient(180deg, #f5c2c7 0%, #f1aeb5 100%);
    box-shadow: 0 2px 6px 0 rgba(220, 53, 69, 0.10);
    border-color: rgba(220, 53, 69, 0.25);
}

.badge-status-ativo::before,
.badge-status-inativo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}


.badge-status-ativo:hover::before,
.badge-status-inativo:hover::before {
    left: 100%;
}

@media (max-width: 576px) {

    .badge-status-ativo,
    .badge-status-inativo {
        font-size: 0.85rem;
        padding: 0.35em 0.85em;
        min-width: 4em;
    }
}

/* ---------- */
/* ---------- Outros */
.hr-ct {
    width: 90%;
    margin-top: -10px;
}

.cursor-pointer {
    cursor: pointer !important;
}

@media (max-width: 575.98px) {

    .footer-ct,
    .main-container,
    .modal-content,
    .modal-footer {
        border-radius: 0 !important;
    }
}

.hidden {
    display: none !important;
}



/* ---------- Tooltips */
.tooltip.bs-tooltip-auto[x-placement^=top] .tooltip-arrow::before,
.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #bfa046 !important;
}

.tooltip.bs-tooltip-auto[x-placement^=bottom] .tooltip-arrow::before,
.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #bfa046 !important;
}

.tooltip.bs-tooltip-auto[x-placement^=left] .tooltip-arrow::before,
.tooltip.bs-tooltip-left .tooltip-arrow::before {
    border-left-color: #bfa046 !important;
}

.tooltip.bs-tooltip-auto[x-placement^=right] .tooltip-arrow::before,
.tooltip.bs-tooltip-right .tooltip-arrow::before {
    border-right-color: #bfa046 !important;
}

.tooltip-inner {
    background-color: #fff !important;
    color: #423502 !important;
    border: 2px solid #e7c873;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(191, 160, 70, 0.20);
    padding: 0.4rem .8rem;
    opacity: 1 !important;
}

.tooltip.show {
    opacity: 1 !important;
}

.tooltip[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #bfa046 !important;
}

.tooltip[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #bfa046 !important;
}

.tooltip[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: #bfa046 !important;
}

.tooltip[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: #bfa046 !important;
}