.swal2-popup {
    padding: 0 !important;
    border-radius: 18px !important;
    border: 1px solid rgba(16, 41, 37, 0.08);
    box-shadow: 0 24px 50px rgba(16, 38, 34, 0.16) !important;
    overflow: hidden;
    background: #fff !important;
    color: #16332e;
}

.swal2-popup.ag-estado-swal {
    padding: 1.55rem 1.35rem 1.25rem !important;
    overflow: visible;
}

.swal2-header {
    padding: 0;
    margin: 0;
}

.swal2-title {
    padding: 1.2rem 1.25rem 0 !important;
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    color: #16332e !important;
}

.swal2-html-container {
    margin: 0.45rem 1.25rem 0 !important;
    padding: 0 !important;
    color: #6b7d79 !important;
    font-size: 0.9rem !important;
    line-height: 1.45;
}

.swal2-input,
.swal2-textarea,
.swal2-select {
    width: calc(100% - 2.5rem) !important;
    margin: 0.75rem 1.25rem 0 !important;
    height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(16, 41, 37, 0.12) !important;
    background: #f7faf9 !important;
    color: #16332e !important;
    box-shadow: none !important;
    font-size: 0.95rem !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: #0ab39c !important;
    box-shadow: 0 0 0 3px rgba(10, 179, 156, 0.16) !important;
    background: #fff !important;
}

.swal2-actions {
    margin: 1.1rem 1.25rem 1.2rem !important;
    gap: 0.55rem;
    width: calc(100% - 2.5rem);
}

.swal2-styled.swal2-confirm,
.swal2-confirm {
    background: #0ab39c !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 0.55rem 1.15rem !important;
    box-shadow: none !important;
}

.swal2-styled.swal2-confirm:hover,
.swal2-confirm:hover {
    background: #088f7d !important;
}

.swal2-styled.swal2-cancel,
.swal2-cancel {
    background: #fff !important;
    color: #16332e !important;
    border: 1px solid rgba(16, 41, 37, 0.12) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 0.55rem 1.15rem !important;
    box-shadow: none !important;
}

.swal2-styled.swal2-cancel:hover,
.swal2-cancel:hover {
    background: #eef4f2 !important;
}

.swal2-icon {
    margin: 1.15rem auto 0 !important;
}

.swal2-icon.swal2-success {
    border-color: #0ab39c !important;
    color: #0ab39c;
}

.swal2-icon.swal2-success [class^=swal2-success-line],
.swal2-success-line-tip,
.swal2-success-line-long {
    background-color: #0ab39c !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(10, 179, 156, 0.35) !important;
}

.swal2-validation-message {
    margin: 0.75rem 1.25rem 0 !important;
    background: #fff4f2 !important;
    color: #b42318 !important;
    border-radius: 10px;
    box-shadow: none !important;
}

.ag-swal {
    width: 32rem !important;
    max-width: calc(100vw - 1.5rem) !important;
    position: relative;
}

.ag-swal::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0ab39c, #088f7d);
}

.ag-swal .swal2-title:empty,
.ag-swal.ag-swal--custom .swal2-title {
    display: none !important;
}

.ag-swal--custom .swal2-html-container {
    margin: 0 1.25rem 0.15rem !important;
    overflow: visible !important;
}

.ag-swal-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
    margin: 1.15rem 0 0.35rem;
}

.ag-swal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 179, 156, 0.14);
    color: #0ab39c;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ag-swal-head__title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: #16332e;
    line-height: 1.25;
}

.ag-swal-head__sub {
    margin: 0.2rem 0 0;
    color: #6b7d79;
    font-size: 0.86rem;
    font-weight: 500;
}

.ag-swal-label {
    display: block;
    text-align: left;
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #3e5853;
}

.ag-swal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(10, 179, 156, 0.12);
    color: #0a7a6b;
    font-size: 0.78rem;
    font-weight: 700;
}

.ag-swal--contacts {
    width: 38rem !important;
    max-width: calc(100vw - 1.5rem) !important;
}

.ag-swal-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: 280px;
    overflow: auto;
    margin-top: 0.85rem;
    padding-right: 0.15rem;
    text-align: left;
}

.ag-swal-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1.5px solid rgba(16, 41, 37, 0.12);
    border-radius: 14px;
    background: #f7faf9;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ag-swal-contact input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ag-swal-contact__check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(16, 41, 37, 0.22);
    background: #fff;
    flex-shrink: 0;
    position: relative;
}

.ag-swal-contact__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ag-swal-contact__body strong {
    color: #16332e;
    font-size: 0.92rem;
    font-weight: 700;
}

.ag-swal-contact__body small {
    color: #6b7d79;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ag-swal-contact__tag {
    flex-shrink: 0;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #fff;
    color: #3e5853;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(16, 41, 37, 0.08);
}

.ag-swal-contact:hover {
    border-color: rgba(10, 179, 156, 0.45);
}

.ag-swal-contact.is-selected,
.ag-swal-contact:has(input:checked) {
    border-color: #0ab39c;
    background: rgba(10, 179, 156, 0.1);
    box-shadow: 0 0 0 3px rgba(10, 179, 156, 0.16);
}

.ag-swal-contact.is-selected .ag-swal-contact__check,
.ag-swal-contact:has(input:checked) .ag-swal-contact__check {
    background: #0ab39c;
    border-color: #0ab39c;
}

.ag-swal-contact.is-selected .ag-swal-contact__check::after,
.ag-swal-contact:has(input:checked) .ag-swal-contact__check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ag-swal__confirm,
.ag-swal__cancel {
    flex: 1;
    margin: 0 !important;
}

.ag-swal .swal2-actions {
    width: calc(100% - 2.5rem);
}
