/* Toast global fixo de status de importação de bases (Hierarquia/Vendas).
   Vive fora de qualquer container de página (ver index.html), por isso o position: fixed usa
   !important em bottom/right/left - o tema legado tem regras genéricas de posicionamento que
   poderiam sobrescrever isso se ele estiver aninhado em algum container com posicionamento
   próprio (ex: .m-page--wide, .m-footer--push). */
.ab-toast {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;

    z-index: 99999;

    display: flex;
    align-items: center;
    gap: 0;

    max-width: 420px;
    min-height: 56px;

    background: #16181f;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);

    padding: 8px 10px 8px 8px;

    font-family: inherit;
    animation: ab-toast-in 0.2s ease-out;
}

@keyframes ab-toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ab-toast-icone {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 16px;
}

.ab-toast--running .ab-toast-icone {
    background: #3b6ef6;
}

.ab-toast--done .ab-toast-icone {
    background: #1fa971;
}

.ab-toast--error .ab-toast-icone {
    background: #e6483a;
}

.ab-toast--pendente .ab-toast-icone {
    background: #d99a2b;
}

.ab-toast-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: ab-toast-spin 0.7s linear infinite;
}

@keyframes ab-toast-spin {
    to {
        transform: rotate(360deg);
    }
}

.ab-toast-divisor {
    flex: 0 0 auto;
    width: 1px;
    align-self: stretch;
    margin: 4px 10px;
    background: rgba(255, 255, 255, 0.12);
}

.ab-toast-texto {
    flex: 1 1 auto;
    min-width: 0;

    display: flex;
    flex-direction: column;
    line-height: 1.25;
    overflow: hidden;
}

.ab-toast-principal {
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ab-toast-contexto {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ab-toast-btn {
    flex: 0 0 auto;
    margin-left: 10px;

    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.ab-toast-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.ab-toast-close {
    flex: 0 0 auto;
    margin-left: 6px;

    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.ab-toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (max-width: 520px) {
    .ab-toast {
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
        max-width: none;
    }
}
