/* =========================================================
   PADRÃO GLOBAL — BOTÕES DE FECHAR
   Cultivando Dinheiro
   ========================================================= */

/* Botão X dos cabeçalhos de modal */
.modal-header .btn-fechar-modal,
.modal-header button.close,
.modal-header .btn-close-custom,
.modal-header .kanban-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    margin: 0 0 0 15px;
    border: 0 !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.modal-header .btn-fechar-modal:hover,
.modal-header button.close:hover,
.modal-header .btn-close-custom:hover,
.modal-header .kanban-close:hover {
    background: rgba(255, 255, 255, 0.30) !important;
    color: #fff !important;
    opacity: 1 !important;
    transform: rotate(90deg);
}

.modal-header .btn-fechar-modal:focus,
.modal-header button.close:focus,
.modal-header .btn-close-custom:focus,
.modal-header .kanban-close:focus {
    outline: 0 !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16) !important;
}

.modal-header .btn-fechar-modal i,
.modal-header button.close i,
.modal-header .btn-close-custom i,
.modal-header .kanban-close i {
    pointer-events: none;
    font-size: 18px;
    line-height: 1;
}

/* Esconde o formato antigo × quando algum modal ainda usar span */
.modal-header button.close > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0;
}

.modal-header button.close > span::before {
    content: "\F659";
    font-family: "bootstrap-icons";
    font-size: 18px;
    font-weight: normal;
}

/* Botão X dos alertas */
.alert .btn-fechar-alert,
.alert-dismissible button.close,
.alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    margin: 0;
    border: 0 !important;
    border-radius: 9px !important;
    background: rgba(0, 0, 0, 0.07) !important;
    color: inherit !important;
    opacity: .75 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

.alert .btn-fechar-alert:hover,
.alert-dismissible button.close:hover,
.alert-dismissible .btn-close:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.12) !important;
}

.alert .btn-fechar-alert:focus,
.alert-dismissible button.close:focus,
.alert-dismissible .btn-close:focus {
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
}

.alert-dismissible {
    position: relative;
    padding-right: 58px !important;
}

.alert-dismissible button.close > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0;
}

.alert-dismissible button.close > span::before {
    content: "\F659";
    font-family: "bootstrap-icons";
    font-size: 15px;
    font-weight: normal;
}

@media (max-width: 575px) {
    .modal-header .btn-fechar-modal,
    .modal-header button.close,
    .modal-header .btn-close-custom,
    .modal-header .kanban-close {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px !important;
    }
}
