/*
 * Pola "popup cepat" (task #14bj): toast kecil, sorotan baris yang baru diubah, dan baris
 * memudar ketika baris itu tidak lagi cocok dengan filter yang sedang terbuka.
 */

/* Pesan sukses tidak menggeser layar; menumpuk dari bawah kanan. */
.qr-toast-container {
    z-index: 1090;
    max-width: min(92vw, 440px);
}

.qr-toast {
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .18);
}

/* Baris/kartu yang baru diubah menyala sekitar 2 detik (dilepas oleh quick-return.js). */
.qr-flash {
    animation: qr-flash 2s ease-out;
    border-radius: .75rem;
}

@keyframes qr-flash {
    0%, 35% {
        background-color: #fff3cd;
        box-shadow: 0 0 0 2px #ffc107;
    }
    100% {
        background-color: transparent;
        box-shadow: 0 0 0 0 transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qr-flash {
        animation: none;
        box-shadow: 0 0 0 2px #ffc107;
    }
}

/* Baris yang baru diubah tetapi sudah tidak masuk filter: tetap terlihat, dipudarkan
   (keputusan Robert 1 Des) supaya perubahannya tidak hilang dari mata. */
.ui-changed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .75rem;
    padding: .75rem 1rem;
    border: 1px dashed var(--bs-border-color, #dee2e6);
    border-radius: .75rem;
    background: var(--bs-body-bg, #fff);
    color: inherit;
    text-decoration: none;
    opacity: .55;
}

.ui-changed-row:hover,
.ui-changed-row:focus-visible {
    opacity: .8;
    color: inherit;
}

.ui-changed-row-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ui-changed-row-title {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ui-changed-row-sub {
    font-size: .8125rem;
    color: var(--bs-secondary-color, #6c757d);
}

.ui-changed-row-end {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.ui-changed-row-note {
    font-size: .75rem;
    color: var(--bs-secondary-color, #6c757d);
}

@media (max-width: 575.98px) {
    .ui-changed-row {
        align-items: flex-start;
    }

    .ui-changed-row-end {
        flex-direction: column;
        align-items: flex-end;
    }

    .ui-changed-row-note {
        order: 2;
    }
}
