/* ============================================================
   PNotify Rich — chrome compartilhado (Simples ≠ Rich)
   Usado por wwPNotifyRich / wwApplyBulkActionReport
   Autor: Victor Lacerda Azevedo
   ============================================================ */

.ui-pnotify.ww-pn-rich {
    --ww-pn-accent: #10b981;
    --ww-pn-accent-2: #059669;
    --ww-pn-accent-soft: #ecfdf5;
    --ww-pn-title: #065f46;
    --ww-pn-msg: #134e4a;
    --ww-pn-hint: #0f766e;
    --ww-pn-border: rgba(16, 185, 129, 0.28);
    --ww-pn-glow: rgba(16, 185, 129, 0.12);
    --ww-pn-rich-delay: 4s;
    right: 18px !important;
}

.ui-pnotify.ww-pn-rich.ww-pn-rich-error {
    --ww-pn-accent: #ef4444;
    --ww-pn-accent-2: #dc2626;
    --ww-pn-accent-soft: #fef2f2;
    --ww-pn-title: #991b1b;
    --ww-pn-msg: #7f1d1d;
    --ww-pn-hint: #b91c1c;
    --ww-pn-border: rgba(239, 68, 68, 0.28);
    --ww-pn-glow: rgba(239, 68, 68, 0.12);
}
.ui-pnotify.ww-pn-rich.ww-pn-rich-warning {
    --ww-pn-accent: #f59e0b;
    --ww-pn-accent-2: #d97706;
    --ww-pn-accent-soft: #fffbeb;
    --ww-pn-title: #92400e;
    --ww-pn-msg: #78350f;
    --ww-pn-hint: #b45309;
    --ww-pn-border: rgba(245, 158, 11, 0.32);
    --ww-pn-glow: rgba(245, 158, 11, 0.14);
}
.ui-pnotify.ww-pn-rich.ww-pn-rich-info {
    --ww-pn-accent: #3b82f6;
    --ww-pn-accent-2: #2563eb;
    --ww-pn-accent-soft: #eff6ff;
    --ww-pn-title: #1e40af;
    --ww-pn-msg: #1e3a8a;
    --ww-pn-hint: #1d4ed8;
    --ww-pn-border: rgba(59, 130, 246, 0.28);
    --ww-pn-glow: rgba(59, 130, 246, 0.12);
}

.ui-pnotify.ww-pn-rich > .ui-pnotify-container {
    background: #ffffff !important;
    border: 1px solid var(--ww-pn-border) !important;
    border-left: 5px solid var(--ww-pn-accent) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18), 0 2px 8px var(--ww-pn-glow) !important;
    padding: 14px 16px 12px !important;
    color: #0f172a !important;
}
.ui-pnotify.ww-pn-rich .ui-pnotify-title {
    color: var(--ww-pn-title) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    margin-bottom: 8px !important;
    line-height: 1.25 !important;
}
.ui-pnotify.ww-pn-rich .ui-pnotify-text {
    color: #0f172a !important;
    margin: 0 !important;
}
.ui-pnotify.ww-pn-rich .ui-pnotify-icon > span {
    color: var(--ww-pn-accent) !important;
    margin-top: 2px;
    font-size: 22px !important;
}
.ui-pnotify.ww-pn-rich .ui-pnotify-closer,
.ui-pnotify.ww-pn-rich .ui-pnotify-sticker {
    color: #64748b !important;
    opacity: 0.85;
    margin-left: 4px;
}
.ui-pnotify.ww-pn-rich .ui-pnotify-closer:hover,
.ui-pnotify.ww-pn-rich .ui-pnotify-sticker:hover {
    color: #0f172a !important;
    opacity: 1;
}
.ui-pnotify.ww-pn-rich.ui-pnotify-stuck .ui-pnotify-sticker,
.ui-pnotify.ww-pn-rich.ww-pn-paused .ui-pnotify-sticker {
    color: var(--ww-pn-accent-2) !important;
    opacity: 1;
}

.ww-pn-rich-body {
    font-size: 13px;
    line-height: 1.45;
    color: #0f172a;
    background: linear-gradient(180deg, var(--ww-pn-accent-soft) 0%, #ffffff 48%);
    border-radius: 10px;
    border: 1px solid var(--ww-pn-border);
    padding: 12px 12px 10px;
    margin-top: 2px;
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    transform: none !important;
}
.ww-pn-rich-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}
.ww-pn-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ww-pn-accent) 0%, var(--ww-pn-accent-2) 100%);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--ww-pn-glow);
}
.ww-pn-badge strong {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff !important;
}
.ww-pn-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pn-chip-color, var(--ww-pn-accent)) !important;
    background: var(--ww-pn-accent-soft);
    border: 1px solid var(--ww-pn-border);
}
.ww-pn-msg {
    min-height: 1.4em;
    color: var(--ww-pn-msg) !important;
    font-size: 13.5px;
    margin-bottom: 10px;
    white-space: pre-wrap;
}
.ww-pn-hint {
    font-size: 11.5px;
    color: var(--ww-pn-hint) !important;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ww-pn-extra {
    margin: 0 0 10px;
}
.ww-pn-timer {
    height: 3px;
    margin: 12px -12px -10px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.ww-pn-timer-bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    background: linear-gradient(90deg, var(--ww-pn-accent), var(--ww-pn-accent-2));
    animation: ww-pn-rich-timer-shrink var(--ww-pn-rich-delay, 4s) linear forwards;
}
.ui-pnotify-stuck .ww-pn-timer-bar,
.ww-pn-paused .ww-pn-timer-bar {
    animation-play-state: paused;
}
@keyframes ww-pn-rich-timer-shrink {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Bulk report inside rich body */
.ww-pn-rich-body .ww-bulk-report {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ww-pn-msg);
}
.ww-pn-rich-body .ww-bulk-report code {
    background: rgba(15, 23, 42, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 12px;
}
