body {
    font-family: "Poppins", sans-serif;
}

.card {
    border-radius: 1rem;
    /* box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important; */
    /* border: 0 !important; */
}

.card-header:first-child,
.card-header {
    border-radius: 1rem 1rem 0 0;
}

.card-footer:last-child,
.card-footer {
    border-radius: 0 0 1rem 1rem;
}

.form-control,
.form-select {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 50rem;
}

.form-select-sm {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: 0.71094rem;
}

.swal2-select {
    border: 1px solid #d9d9d9;
}

.form-control:focus,
.form-select:focus,
.swal2-input:focus,
.swal2-select:focus,
.swal2-select:focus-visible {
    border: 2px solid #ba2026;
    box-shadow: none;
}

body:not([data-sidebar-size="sm"]) #vertical-menu-btn {
    margin-left: 0;
    margin-right: 20px;
}

.btn-primary {
    color: #fff;
    background-color: #ba2026;
    border-color: #ba2026;
}

/* Hover state */
.btn-primary:hover {
    color: #fff;
    background-color: #a71e22; /* Darken the background a bit */
    border-color: #9b1c1f;
}

/* Focus state */
.btn-primary:focus,
.btn-primary.focus {
    color: #fff;
    background-color: #a71e22;
    border-color: #9b1c1f;
    box-shadow: 0 0 0 0.25rem rgba(186, 32, 38, 0.5);
}

/* Active state - when the button is pressed */
.btn-primary:active,
.btn-primary.active {
    color: #fff;
    background-color: #9b1c1f;
    border-color: #901a1c;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

/* Disabled state */
.btn-primary:disabled,
.btn-primary.disabled {
    color: #fff;
    background-color: #ba2026;
    border-color: #ba2026;
    opacity: 0.65;
}

/* Focus within state, for accessibility */
.btn-primary:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(186, 32, 38, 0.5);
}

.btn-link {
    font-weight: 400;
    color: #ba2026;
    text-decoration: none;
}

.form-check-input:checked {
    background-color: #ba2026;
    border-color: #ba2026;
}

.bw-filter {
    filter: grayscale(100%);
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #ba2026;
    border-color: #ba2026;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: #ba2026 !important;
}

#sidebar-menu ul li a:hover i {
    color: #ba2026;
}

body[data-sidebar-size="sm"]
    .vertical-menu
    #sidebar-menu
    > ul
    > li:hover
    > a
    i {
    color: #ba2026;
}

body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > a {
    position: relative;
    width: calc(190px + 70px);
    color: #ba2026;
    background-color: #f5f5f5;
    -webkit-transition: none;
    transition: none;
}

.metismenu li:hover {
    background: #f9f9f9 !important;
}

.metismenu li:hover span {
    color: #ba2026;
    font-weight: 500;
}

#sidebar-menu ul li:hover i {
    color: #ba2026;
}

.mm-active .active {
    color: #ba2026 !important;
}

.mm-active > a {
    color: #ba2026 !important;
}

.mm-active .active i {
    color: #ba2026 !important;
}

.mm-active > a i {
    color: #ba2026 !important;
}

#sidebar-menu ul li a:hover {
    color: #ba2026;
    font-weight: 500;
}

.page-link:hover {
    z-index: 2;
    color: #ba2026;
    text-decoration: none;
    background-color: #e9e9ef;
    border-color: #ced4da;
}

.header-profile-user {
    height: 48px;
    width: 52px;
    object-fit: cover;
    padding: 0;
    border-radius: 1.2rem;
}

.vertical-menu {
    width: 250px;
    z-index: 1001;
    background: #fff;
    bottom: 0;
    margin-top: 0;
    position: fixed;
    top: 70px;
    border-right: 1px solid transparent;
    -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* Adiciona uma transição suave à largura */
}

body[data-sidebar-size="sm"] .vertical-menu {
    position: absolute;
    width: 70px !important; /* Reduz a largura para o tamanho pequeno */
    z-index: 5;
    transition: width 0.3s ease; /* Assegura que a transição também ocorra ao reduzir a largura */
}

#page-topbar,
.vertical-menu {
    -webkit-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

table,
table tr:last-child,
table tr:last-child td {
    border-bottom: none;
}

/* Primeira célula da última linha */
table tr:last-child td:first-child,
table tr:last-child th:first-child {
    border-bottom-left-radius: 0.5rem;
}

/* Última célula da última linha */
table tr:last-child td:last-child,
table tr:last-child th:last-child {
    border-bottom-right-radius: 0.5rem;
}

tr {
    vertical-align: middle !important;
}

body[data-layout-mode="dark"] .table .table-light,
body[data-layout-mode="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
    --bs-table-accent-bg: #0f1113;
    color: #858d98;
}

body[data-layout-mode="dark"] .table-hover > tbody > tr:hover {
    --bs-table-accent-bg: #363a38;
}

/* Arredondar os cantos do primeiro e último botão em um grupo de botões */
.btn-group .btn:first-child {
    border-top-left-radius: 50rem;
    border-bottom-left-radius: 50rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 50rem;
    border-bottom-right-radius: 50rem;
}

/* Caso tenha apenas um botão no grupo */
.btn-group .btn:only-child {
    border-radius: 50rem;
}

/* Arredondar os cantos do primeiro e último item na paginação do Bootstrap */
.pagination .page-item:first-child .page-link {
    border-top-left-radius: 50rem;
    border-bottom-left-radius: 50rem;
}

.pagination .page-item:last-child .page-link {
    border-top-right-radius: 50rem;
    border-bottom-right-radius: 50rem;
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-success,
.btn.btn-warning,
.btn.btn-danger,
.btn.btn-info,
.btn.btn-link {
    border-radius: 50rem;
}

.btn-warning {
    color: #495057;
}

.btn-warning:hover {
    color: #495057;
}

.modal-content {
    border-radius: 1rem;
}

.btn-link:hover {
    color: #9d1e23;
}

table.dataTable tbody td:last-child {
    white-space: nowrap;
}

.choices__inner {
    display: inline-block !important;
    vertical-align: top !important;
    width: 100% !important;
    background-color: #fff !important;
    padding: 4px 8px !important;
    border: 1px solid #ced4da !important;
    border-radius: 50rem !important;
    font-size: 0.8125rem !important;
    min-height: 0 !important;
}

.is-focused .choices__inner,
.is-open .choices__inner {
    border: 2px solid #9d1e23 !important;
}

.is-open .choices__inner {
    border-radius: 2.5px 2.5px 0 0 !important;
}

.is-flipped.is-open .choices__inner {
    border-radius: 0 0 2.5px 2.5px !important;
}

.flatpickr-input:disabled {
    background-color: #e9e9ef !important;
    cursor: default !important;
}

.swal2-popup.swal2-modal {
    border-radius: 1rem;
}

.swal2-input,
.swal2-cancel.swal2-styled,
.swal2-confirm.swal2-styled,
.swal2-select {
    border-radius: 50rem;
}
