/* Notifications panel (modal) - DIPAYUDA
   Used by assets/js/app.js (window.dpNotif). Colors follow the site tokens: --green, --tint, --ink, --muted. */

.profile-modal-card.np-card{
	width:min(580px,100%)!important;max-height:min(86vh,760px)!important;padding:0!important;overflow:hidden!important;
	display:flex;flex-direction:column;border-radius:18px;border:1px solid #d9e7e3;
	box-shadow:0 28px 80px rgba(12,45,38,.28);animation:np-in .22s cubic-bezier(.2,.8,.2,1)
}
@keyframes np-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}

/* ---- Header ---- */
.np-head{display:flex;align-items:center;gap:12px;padding:18px 20px 14px;background:linear-gradient(180deg,var(--tint),#fff);flex:0 0 auto}
.np-head-ico{width:40px;height:40px;border-radius:12px;background:var(--green);color:#fff;display:grid;place-items:center;flex:0 0 40px;box-shadow:0 6px 14px rgba(15,110,86,.22)}
.np-head-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.np-head-text{flex:1;min-width:0}
.np-head h3{margin:0;font-size:17px;letter-spacing:-.3px;color:var(--ink);display:flex;align-items:center;gap:8px}
.np-head p{margin:2px 0 0;font-size:12px;color:var(--muted)}
.np-count{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.3px;background:#fdecea;color:#b0382b;border-radius:999px;padding:2px 8px}
.np-close{flex:0 0 34px;width:34px;height:34px;border:0;border-radius:50%;background:#eef4f2;color:#536862;display:grid;place-items:center;cursor:pointer;transition:background .15s}
.np-close:hover{background:#e0ece8}
.np-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* ---- Tab filter ---- */
.np-tabs{display:flex;gap:6px;padding:0 20px 12px;overflow-x:auto;flex:0 0 auto;scrollbar-width:none;border-bottom:1px solid #e8f0ed}
.np-tabs::-webkit-scrollbar{display:none}
.np-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;border:1px solid #dbe8e4;background:#fff;color:#4f6a63;font:inherit;font-size:12px;font-weight:700;border-radius:999px;padding:6px 12px;cursor:pointer;transition:all .15s}
.np-tab:hover{border-color:#bcd8d0;background:var(--tint)}
.np-tab.active{background:var(--green);border-color:var(--green);color:#fff}
.np-tab em{font-style:normal;font-size:10px;font-weight:800;min-width:18px;text-align:center;border-radius:999px;padding:1px 6px;background:var(--tint);color:var(--green)}
.np-tab.active em{background:rgba(255,255,255,.22);color:#fff}

/* ---- List ---- */
.np-body{flex:1 1 auto;overflow-y:auto;padding:6px 12px 12px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cfe0da transparent}
.np-group{position:sticky;top:0;z-index:2;margin:0;padding:12px 8px 6px;font-size:10px;font-weight:800;letter-spacing:1.1px;color:#7b918b;background:linear-gradient(#fff 75%,rgba(255,255,255,0))}
.np-list{display:grid;gap:6px}

.np-item{position:relative;display:flex;gap:12px;align-items:flex-start;padding:12px 12px 12px 14px;border:1px solid #e6efec;border-radius:13px;background:#fff;color:inherit;text-decoration:none;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s,transform .15s}
.np-item:hover{border-color:#c7ddd6;background:#fafdfc;box-shadow:0 6px 18px rgba(15,70,56,.07)}
.np-item.unread{background:linear-gradient(90deg,var(--tint),#fff 70%);border-color:var(--tint-line,#d3e9e1)}
.np-item.unread::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:var(--green)}

.np-ico{flex:0 0 38px;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--tint);color:var(--green)}
.np-ico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.np-item.tone-success .np-ico{background:#e4f6ee;color:#12805c}
.np-item.tone-danger .np-ico{background:#fdecea;color:#b0382b}
.np-item.tone-warn .np-ico{background:#fff4d6;color:#8a6410}

.np-main{flex:1;min-width:0}
.np-top{display:flex;align-items:flex-start;gap:8px;justify-content:space-between}
.np-title{margin:0;font-size:13px;font-weight:700;color:var(--ink);line-height:1.4;overflow-wrap:anywhere}
.np-item:not(.unread) .np-title{font-weight:600;color:#4f655f}
.np-time{flex:0 0 auto;font-size:11px;color:#8a9a95;white-space:nowrap;padding-top:1px}
.np-msg{margin:3px 0 0;font-size:12px;line-height:1.55;color:var(--muted);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.np-item.open .np-msg{-webkit-line-clamp:unset;display:block}
.np-meta{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.np-chip{font-size:10px;font-weight:800;letter-spacing:.3px;border-radius:999px;padding:2px 8px;background:#eef4f2;color:#4f6a63}
.np-more{border:0;background:none;padding:0;font:inherit;font-size:11px;font-weight:700;color:var(--green);cursor:pointer}
.np-more:hover{text-decoration:underline}
.np-go{margin-left:auto;font-size:11px;font-weight:700;color:var(--green);opacity:0;transition:opacity .15s;display:inline-flex;align-items:center;gap:3px}
.np-go svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.np-item:hover .np-go{opacity:1}

/* ---- Empty / error ---- */
.np-empty{display:grid;justify-items:center;text-align:center;padding:44px 24px 38px;color:var(--muted)}
.np-empty-ico{width:64px;height:64px;border-radius:50%;background:var(--tint);color:#6b8a82;display:grid;place-items:center;margin-bottom:12px}
.np-empty-ico svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.np-empty b{font-size:14px;color:var(--ink);margin-bottom:4px}
.np-empty span{font-size:12px;line-height:1.55;max-width:300px}

/* ---- Footer ---- */
.np-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 20px;border-top:1px solid #e8f0ed;background:#fff;flex:0 0 auto}
.np-foot small{font-size:11px;color:#8a9a95}
.np-foot-actions{display:flex;gap:8px}
.np-foot .btn{padding:8px 14px;font-size:12px}
.np-foot .btn[hidden]{display:none}

/* ---- Skeleton inside the panel ---- */
.np-body .notification-list{gap:6px;padding:10px 0}
.np-body .dp-sk-notif{padding:14px;border:1px solid #e6efec;border-radius:13px}
.np-body .dp-sk-notif .dp-sk-circle{width:38px;height:38px;border-radius:11px;margin-top:0}

/* ---- Mobile: bottom sheet ---- */
@media(max-width:640px){
	.profile-modal-layer:has(.np-card){align-items:end;padding:0}
	.profile-modal-card.np-card{width:100%!important;max-height:90vh!important;border-radius:20px 20px 0 0;animation:np-up .26s cubic-bezier(.2,.8,.2,1)}
	.np-head{padding:16px 16px 12px}
	.np-tabs{padding:0 16px 12px}
	.np-body{padding:4px 10px 10px}
	.np-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))}
	.np-foot small{display:none}
	.np-foot-actions{width:100%}
	.np-foot-actions .btn{flex:1}
	.np-go{display:none}
}
@keyframes np-up{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.profile-modal-card.np-card{animation:none}}
