label {
    margin-bottom: .2rem;
}

label:not(.form-check-label):not(.custom-file-label) {
    font-weight: normal;
}

input.is-invalid~.input-group-append {
    /* display: none; */
}

fieldset {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

legend {
    font-size: 14px;
    padding: 0 2px;
    border: 0;
    margin: 0;
    width: auto;
}

.btn.btn-success {
    color: #fff !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn.btn-success:hover {
    color: #fff !important;
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.btn.btn-danger {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn.btn-danger:hover {
    color: #fff !important;
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

.btn.btn-secondary {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn.btn-secondary:hover {
    color: #fff !important;
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
}

.custom-file-sm .custom-file-input,
.custom-file-sm .custom-file-label {
    padding: .25rem .5rem;
    font-size: .875rem;
    height: calc(1.8125rem + 2px);
}

.custom-file-label::after {
    content: "Procurar";
    line-height: 1.2;
}

.card-success.card-outline-bottom {
    border-bottom: 3px solid #28a745;
}

.card-danger.card-outline-bottom {
    border-bottom: 3px solid #dc3545;
}

/** Utilities */

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

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

.gap-4 {
    gap: 1.5rem !important;
}

.gap-5 {
    gap: 1.5rem !important;
}

.text-decoration-line-through {
    text-decoration: line-through;
}

/** Login page */

.login-page,
.register-page {
    background: url('/assets/img/login-bg.png') no-repeat fixed;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.message-box {
    background: #FFF;
    text-align: center;
    margin: 5rem 0;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important
}

.login-logo,
.register-logo {
    margin: 1rem 0;
}

@media (min-width: 768px) {

    .login-page:has(.message-box),
    .register-page:has(.message-box) {
        align-items: center;
        justify-content: center;
        flex-direction: row;
        gap: 10rem;
    }

    .message-box {
        margin-left: 5rem !important;
    }

    .login-box,
    .register-box {
        min-width: 360px;
    }

    .login-page:not(:only-child) {
        margin-right: 5rem !important;
    }
}

/** Sign page */

.scroll-notice {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(0 0 0 / 80%);
    color: #FFF;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1031;
    display: none;
}

.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1031;
}

.fab-button {
    width: 56px;
    height: 56px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.75) !important;
}

.fab-actions {
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: 55px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.fab-actions li {
    margin-bottom: 10px;
}

.fab-action {
    width: 180px;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px;
}

/* Active state */
.fab-container.active .fab-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Jquery DataTable */
div.dt-container div.dt-paging ul.pagination {
    justify-content: end;
}