@media print {
    body * { visibility: hidden; }
    #printable-do, #printable-do *, #printable-ticket, #printable-ticket * { visibility: visible; }
    #printable-do, #printable-ticket { position: absolute; left: 0; top: 0; width: 100%; }
}

#toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 99999;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 380px; width: 100%;
    pointer-events: none;
}
.toast {
    background: #1e293b; color: #fff; border-radius: 14px;
    padding: 14px 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    display: flex; align-items: center; gap: 12px;
    transform: translateX(120%); opacity: 0;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    font-size: 14px; font-weight: 500;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.hiding { transform: translateX(120%); opacity: 0; }
.toast-success { background: #065f46; border-left: 4px solid #34d399; }
.toast-error { background: #7f1d1d; border-left: 4px solid #f87171; }
.toast-info { background: #1e3a5f; border-left: 4px solid #60a5fa; }
.toast-icon { font-size: 22px; flex-shrink: 0; }
.toast-msg { flex: 1; line-height: 1.4; }
.toast-close { cursor: pointer; opacity: 0.6; font-size: 18px; transition: opacity 0.2s; }
.toast-close:hover { opacity: 1; }

.spinner-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px); z-index: 99998;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.spinner-overlay.active { opacity: 1; pointer-events: all; }
.spinner-box {
    background: white; border-radius: 20px; padding: 30px 40px;
    text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.8); transition: transform 0.3s ease;
}
.spinner-overlay.active .spinner-box { transform: scale(1); }
.spinner-ring {
    width: 48px; height: 48px; border: 4px solid #e2e8f0;
    border-top-color: #4338ca; border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-loading { position: relative; pointer-events: none; color: transparent !important; }
.btn-loading::after {
    content: ''; position: absolute; inset: 0; margin: auto;
    width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.card-hover { transition: all 0.25s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.4s ease forwards; }

@keyframes pulseSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.pulse-soft { animation: pulseSoft 2s ease-in-out infinite; }

tbody tr { transition: background-color 0.2s ease; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
