/* =========================
   TOAST
========================= */
.toast-container.toast-top-right {
    width: unset !important;
    margin-bottom: unset !important;
}

.toast {
    margin-bottom: 5px !important;
}

/* =========================
   CARDS / LAYOUT
========================= */
.card {
    margin-bottom: 10px;
}

.table-responsive {
    overflow-x: auto !important;
}

/* =========================
   PAGINAÇÃO DATATABLE
========================= */
.pagination_container .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    border: 1px solid #dfe5ef;
}

.pagination_container .dataTables_paginate .paginate_button .previous {
    border-radius: 7px 0 0 7px;
    background-color: #eaeff4;
}

.pagination_container .dataTables_paginate .paginate_button.current {
    color: #fff;
    background-color: #5d87ff;
    border-color: #5d87ff;
}

/* =========================
   GLOBAL
========================= */
:root {
    scroll-behavior: auto !important;
}

.input-group-right-radius {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.swal-loader-conatiner {
    width: 400px;
}

table td {
    word-wrap: break-word;
    white-space: normal;
}

/* =========================
   COLUNA CHECKBOX
========================= */
td:has(.n-chk),
.multiselect_column {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding-right: 0 !important;
    overflow: visible !important;
}

/* =========================
   COLUNA AÇÕES (3 PONTOS)
========================= */
td:has(.dropdown) {
    position: relative !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 0 !important;
    text-align: center !important;
    overflow: visible !important;
}

/* Botão dos 3 pontos */
td:has(.dropdown) > .dropdown > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

/* =========================
   DROPDOWN MENU (CORRETO)
========================= */
td:has(.dropdown) .dropdown-menu {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin-left: 6px !important;
    transform: none !important;
    z-index: 1055 !important;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    td:has(.dropdown),
    td:has(.n-chk),
    .multiselect_column {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
    }

    td:has(.dropdown) > .dropdown > a {
        width: 44px;
        height: 44px;
    }

    td:has(.dropdown) .dropdown-menu {
        margin-left: 10px !important;
    }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 768px) {
    .table-responsive {
        overflow-x: visible;
    }
}
