:root {
    --toast-gap: 8px;
    --toast-radius: 12px;
    --toast-shadow: 0 10px 20px rgba(2, 6, 23, .20);
    --toast-bg: #0f172a;
    --toast-fg: #ffffff;
    --toast-bg-success: #059669;
    --toast-bg-warn: #b45309;
    --out: 220ms;
    --ttl: 3000ms;
}

.card {
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(2, 6, 23, .10);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade {
    animation: fadeUp .4s ease both;
}

.table-scroll {
    max-height: 60vh;
    overflow: auto;
}

th.sticky {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
    z-index: 1;
}

.toast-wrap {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: var(--toast-gap);
    z-index: 50;
    pointer-events: none;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-6px) scale(.98);
    }
}

@keyframes toast-bar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 10px;
    background: var(--toast-bg);
    color: var(--toast-fg);
    padding: 10px 12px;
    border-radius: var(--toast-radius);
    box-shadow: var(--toast-shadow);
    opacity: 1;
    pointer-events: auto;
}

.toast.success {
    background: var(--toast-bg-success);
}

.toast.warn {
    background: var(--toast-bg-warn);
}

.toast.info {
    background: var(--toast-bg);
}

.toast--in {
    animation: toast-in .22s ease-out both;
}

.toast--out {
    animation: toast-out var(--out) ease-in both;
}

/* Pausa animação de barra ao hover */
.toast--paused .toast__bar {
    animation-play-state: paused;
}

.toast__icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 1px;
    opacity: .95;
}

.toast__text {
    font-size: 14px;
    line-height: 1.35;
}

.toast__actions {
    display: inline-flex;
    gap: 6px;
}

.toast__btn,
.toast__close {
    appearance: none;
    border: 0;
    outline: 0;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, opacity .12s ease;
}

.toast__btn:hover,
.toast__close:hover {
    background: rgba(255, 255, 255, .22);
}

.toast__close {
    font-weight: 700;
    padding: 0 8px;
    line-height: 20px;
}

.toast__bar {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 2px;
    background: rgba(255, 255, 255, .7);
    border-radius: 2px;
    animation: toast-bar var(--ttl) linear forwards;
}

details summary::-webkit-details-marker {
    display: none;
}

.acc-summary {
    cursor: pointer;
    list-style: none;
}

.acc-chevron {
    transition: transform .2s ease;
}

details[open] .acc-chevron {
    transform: rotate(180deg);
}