﻿.swal-d-none {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* =========================================
   CONTAINER DO SWEETALERT
========================================= */

/* 1. Força o container (o fundo escuro) a preencher TUDO */
.swal2-container {
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
}

/* Garante que o backdrop (fundo escuro) seja absoluto e cubra tudo */
.swal2-backdrop-bg {
    background: rgba(0,0,0,0.08) !important;
}

/* Remove possíveis margens ou transformações que "encolhem" o fundo em telas grandes */
.swal2-container.swal2-no-backdrop {
    background: rgba(0, 0, 0, 0) !important;
}

.swal2-container.swal2-top {
    padding-top: 30px !important;
}

/* Garante que o popup não seja afetado por scroll da página pai quando aberto */
body.swal2-shown {
    overflow: hidden !important;
}

.swal-popup-modern {
    border-radius: 22px !important;
    padding: 25px 20px 25px 20px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.08) !important;
}

/* CONTAINER DETALHES */
.swal-detalhes-container {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TEXTO */
.swal-detalhes-texto {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .25s ease, opacity .25s ease, margin-top .25s ease;
    background: #f9fafb;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    width: 100%;
    max-width: 520px;
}

/* ABERTO */
.swal-detalhes-open {
    max-height: 400px;
    opacity: 1;
    margin-top: 12px;
    padding: 5px 10px;
}

/* ICONE NO TOPO */
.swal2-icon {
    width: 5em !important;
    height: 5em !important;
    margin: 0.8em auto -1.8em !important;
}

    .swal2-icon .swal2-icon-content {
        font-size: 3.2em !important;
    }

/* TÍTULO */
.swal-titulo-modern {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    margin-top: -18px;
    margin-bottom: -10px;
}

/* TEXTO */
.swal-texto-modern-big
.swal-texto-modern {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    padding-top: 10px;
}

/* TEXTO MAIOR */
.swal-texto-modern-big {
    font-size: 25px;
}

.swal-btn-confirm,
.swal-btn-cancel,
.swal-btn-extra,
.swal-btn-danger {
    border: none !important;
    border-radius: 14px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 5px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    min-width: 110px !important;
}

/* =========================================
   BASE DOS BOTÕES SWEETALERT
========================================= */

.swal2-styled {
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .2px;
    transition: all .18s ease !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.12) !important;
}

    /* HOVER GLOBAL */
    .swal2-styled:hover {
        transform: translateY(-1px);
    }

    /* CLICK */
    .swal2-styled:active {
        transform: scale(.98);
    }

/* =========================================
   BOTÃO OK
========================================= */

.swal-btn-confirm {
    background: #2563eb !important;
    color: #fff !important;
}

    .swal-btn-confirm:hover {
        background: #1d4ed8 !important;
    }

    .swal-btn-confirm:focus {
        outline: none !important;
        box-shadow: 0 0 0 4px rgba(37,99,235,.20), 0 2px 6px rgba(0,0,0,.12) !important;
    }

/* =========================================
   BOTÃO CANCELAR
========================================= */

.swal-btn-cancel {
    background: #f59e0b !important;
    color: #fff !important;
}

    .swal-btn-cancel:hover {
        background: #ea580c !important;
    }

    .swal-btn-cancel:focus {
        outline: none !important;
        box-shadow: 0 0 0 4px rgba(245,158,11,.20), 0 2px 6px rgba(0,0,0,.12) !important;
    }

/* =========================================
   BOTÃO EXTRA
========================================= */

.swal-btn-extra {
    background: #16a34a !important;
    color: #fff !important;
}

    .swal-btn-extra:hover {
        background: #15803d !important;
    }

    .swal-btn-extra:focus {
        outline: none !important;
        box-shadow: 0 0 0 4px rgba(22,163,74,.20), 0 2px 6px rgba(0,0,0,.12) !important;
    }

/* =========================================
   BOTÃO DANGER
========================================= */

.swal-btn-danger {
    background: #dc2626 !important;
    color: #fff !important;
}

    .swal-btn-danger:hover {
        background: #b91c1c !important;
    }

    .swal-btn-danger:focus {
        outline: none !important;
        box-shadow: 0 0 0 4px rgba(220,38,38,.20), 0 2px 6px rgba(0,0,0,.12) !important;
    }

/* =========================================
   BOTÃO DETALHES
========================================= */

.swal-btn-detalhes {
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .swal-btn-detalhes:hover {
        opacity: .85;
    }

/* =========================================
    BOTÃO DESABILITADO 
========================================= */

.swal-btn-disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(.15);
}

/* =========================================
    CHECKBOX 
========================================= */

.swal-checkbox-container {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.swal-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500 !important;
    user-select: none;
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 5px;
}

    .swal-checkbox-label span {
        position: relative;
        text-decoration: underline;
        top: 2px;
    }

.swal-checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
    margin: 0;
}
