/* POSCloud Global Notification */
#pc-notification-root {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    font-family: inherit;
}

.pc-toast-stack {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(390px, calc(100vw - 32px));
    pointer-events: none;
}

.pc-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    background: #fff;
    color: #172033;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .15);
    pointer-events: auto;
    animation: pc-toast-in .25s ease-out both;
}

.pc-toast.pc-leaving {
    animation: pc-toast-out .2s ease-in both;
}

.pc-toast-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 16px;
}

.pc-toast-success .pc-toast-icon { background: #dcfce7; color: #15803d; }
.pc-toast-error .pc-toast-icon { background: #fee2e2; color: #b91c1c; }
.pc-toast-warning .pc-toast-icon { background: #fef3c7; color: #a16207; }
.pc-toast-info .pc-toast-icon { background: #dbeafe; color: #1d4ed8; }

.pc-toast-content { flex: 1; min-width: 0; }
.pc-toast-title { font-size: 13px; font-weight: 750; margin: 0 0 3px; }
.pc-toast-message { font-size: 13px; line-height: 1.5; color: #526078; overflow-wrap: anywhere; }
.pc-toast-close {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0 2px;
}

.pc-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(3px);
    pointer-events: auto;
    animation: pc-fade-in .16s ease-out both;
}

.pc-dialog {
    width: min(440px, 100%);
    background: #fff;
    color: #172033;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 25px 80px rgba(15,23,42,.25);
    animation: pc-dialog-in .2s ease-out both;
}

.pc-dialog-symbol {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    margin-bottom: 16px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
    font-weight: 800;
}

.pc-dialog-symbol.pc-danger { background: #fee2e2; color: #dc2626; }
.pc-dialog-symbol.pc-warning { background: #fef3c7; color: #b45309; }

.pc-dialog-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.pc-dialog-message { margin: 0; color: #64748b; font-size: 14px; line-height: 1.65; white-space: pre-line; }
.pc-dialog-input {
    display: block;
    width: 100%;
    margin-top: 17px;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    font: inherit;
    color: #172033;
}
.pc-dialog-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }

.pc-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.pc-dialog-button {
    min-height: 41px;
    padding: 0 17px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}
.pc-dialog-cancel { background: #f1f5f9; color: #475569; }
.pc-dialog-primary { background: #4f46e5; color: #fff; }
.pc-dialog-primary.pc-danger { background: #dc2626; }
.pc-dialog-button:focus-visible, .pc-toast-close:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

@keyframes pc-toast-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pc-toast-out { to { opacity: 0; transform: translateX(18px); } }
@keyframes pc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pc-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 520px) {
    .pc-toast-stack { top: 12px; right: 12px; width: calc(100vw - 24px); }
    .pc-dialog { padding: 21px; border-radius: 17px; }
    .pc-dialog-actions { flex-direction: column-reverse; }
    .pc-dialog-button { width: 100%; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .pc-toast, .pc-dialog-backdrop, .pc-dialog { animation: none !important; }
}
