/* ═══════════════════════════════════════════════════════════════
   PC WEB APP OVERHAUL, part 6: Notifications page (Ren 2026-11-06).
   Desktop only (body.dx); phone unchanged. The phone page opens on
   PC too (openAllNotificationsModal); here it sits under the green
   header as a page, with the details as a centered window.
   ═══════════════════════════════════════════════════════════════ */
/* from clientView.css line 6310 */
body.dx #ccNotifPage {
    position: fixed; inset: 0; z-index: 10040; flex-direction: column; background: var(--ag-page); color: var(--ag-ink);
    transform: translateX(100%); transition: transform .22s ease;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  body.dx #ccNotifPage.open { transform: none; }
  body.dx.ccn-lock { overflow: hidden; }
  body.dx #ccNotifPage .ccn-head {
    flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }
  body.dx #ccNotifPage .ccn-back { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 12px; background: var(--ag-card); color: var(--ag-ink); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  body.dx #ccNotifPage .ccn-back svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  body.dx #ccNotifPage .ccn-gear svg { stroke-width: 2; }
  body.dx #ccNotifPage h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 800; color: var(--ag-ink); }
  body.dx #ccNotifPage .ccn-markall { height: 36px; border: 0; background: none; color: var(--ag-green-ink); font-family: inherit; font-size: 14px; font-weight: 700; padding: 0 8px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  body.dx #ccNotifPage .ccn-markall:disabled { color: var(--ag-label); opacity: .5; cursor: default; }
  body.dx #ccNotifPage .ccn-chips { flex: 0 0 auto; display: flex; gap: 8px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
  body.dx #ccNotifPage .ccn-chips::-webkit-scrollbar { display: none; }
  body.dx #ccNotifPage .ccn-chip { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ag-line); background: var(--ag-card); color: var(--ag-ink); font-family: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 6px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  body.dx #ccNotifPage .ccn-chip.on { border-color: var(--ag-green); background: var(--ag-green); color: #fff; }
  body.dx #ccNotifPage .ccn-chip i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
  body.dx #ccNotifPage .ccn-scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px 14px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
  body.dx #ccNotifPage .ccn-h { margin: 4px 4px -2px; font-size: 13px; font-weight: 800; color: var(--ag-label); }
  body.dx #ccNotifPage .ccn-card { background: var(--ag-card); border-radius: 20px; padding: 4px 14px; display: flex; flex-direction: column; flex-shrink: 0; }
  body.dx #ccNotifPage .ccn-card.old { background: #f6f9f7; }
  body.dx body.dark-mode #ccNotifPage .ccn-card.old { background: #131e17; }
  body.dx #ccNotifPage .ccn-row {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--ag-line); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none;
  }
  body.dx #ccNotifPage .ccn-row:last-child { border-bottom: 0; }
  body.dx #ccNotifPage .ccn-row:active { opacity: .7; }
  body.dx #ccNotifPage .ccn-row:focus-visible { box-shadow: 0 0 0 3px var(--ag-green); border-radius: 12px; }
  body.dx #ccNotifPage .ccn-ico, body.dx #ccNotifDetail .ccn-ico { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
  body.dx #ccNotifPage .ccn-ico svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  body.dx #ccNotifPage .ccn-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  body.dx #ccNotifPage .ccn-txt b { font-size: 14px; font-weight: 700; color: var(--ag-ink); line-height: 1.3; overflow-wrap: anywhere; }
  body.dx #ccNotifPage .ccn-row.unread .ccn-txt b { font-weight: 800; }
  body.dx #ccNotifPage .ccn-body { font-size: 13px; color: var(--ag-label); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
  body.dx #ccNotifPage .ccn-when { font-size: 12px; color: var(--ag-label); margin-top: 2px; }
  body.dx #ccNotifPage .ccn-act { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
  body.dx #ccNotifPage .ccn-act .ccn-when { margin-top: 0; }
  body.dx #ccNotifPage .ccn-btn { height: 32px; padding: 0 12px; border: 0; border-radius: 10px; color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
  body.dx .ccn-b-purple { background: #5b3aa8; } body.dx .ccn-b-red { background: #93203f; } body.dx .ccn-b-orange { background: #a65a0a; }
  body.dx .ccn-b-teal { background: #0a6f62; } body.dx .ccn-b-green { background: #1f7a35; }
  body.dx #ccNotifPage .ccn-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--ag-green); margin-top: 6px; }
  body.dx #ccNotifPage .ccn-push { flex-shrink: 0; background: var(--ag-orange-bg); border-radius: 18px; padding: 14px; display: flex; gap: 12px; align-items: center; }
  body.dx #ccNotifPage .ccn-push .ccn-ico { width: 40px; height: 40px; background: var(--ag-card); }
  body.dx #ccNotifPage .ccn-push-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  body.dx #ccNotifPage .ccn-push-t b { font-size: 14px; font-weight: 800; color: var(--ag-orange-ink); }
  body.dx #ccNotifPage .ccn-push-t span { font-size: 13px; line-height: 1.4; color: var(--ag-orange-ink); }
  body.dx #ccNotifPage .ccn-push-on { height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: #a65a0a; color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
  body.dx #ccNotifPage .ccn-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px 36px; }
  body.dx #ccNotifPage .ccn-empty b { font-size: 20px; font-weight: 800; color: var(--ag-ink); }
  body.dx #ccNotifPage .ccn-empty span { font-size: 14px; line-height: 1.5; color: var(--ag-label); }
  body.dx #ccNotifPage .ccn-empty.small { flex: 0 0 auto; padding: 50px 30px; gap: 6px; }
  body.dx #ccNotifPage .ccn-empty.small b { font-size: 16px; }
  body.dx #ccNotifPage .ccn-big { width: 88px; height: 88px; border-radius: 26px; display: flex; align-items: center; justify-content: center; }
  body.dx #ccNotifPage .ccn-big svg { width: 40px; height: 40px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  body.dx #ccNotifPage .ccn-empty-btn { margin-top: 4px; height: 48px; padding: 0 20px; border-radius: 14px; background: var(--ag-card); border: 2px solid var(--ag-green); color: var(--ag-green-ink); font-family: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
  body.dx #ccNotifPage .ccn-empty-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }


/* PC frame */
body.dx #ccNotifPage {
  top: var(--dx6-top, 184px) !important; inset: var(--dx6-top, 184px) 0 0 0 !important; transform: none !important; opacity: 0; transition: opacity .15s ease !important;
  background: var(--dx-bg) !important; z-index: 10002 !important; overflow-y: auto !important;
  padding: 20px max(24px, calc((100vw - 760px) / 2)) 40px !important; box-sizing: border-box;
}
body.dx #ccNotifPage.open { opacity: 1; }
body.dx #ccNotifPage .ccn-head { padding: 0 0 6px !important; }
body.dx #ccNotifPage .ccn-head h2 { font: 800 28px Outfit, Inter, sans-serif !important; letter-spacing: -.4px; color: var(--dx-ink); }
body.dx #ccNotifPage .ccn-back:not(.ccn-gear) { display: none !important; }
body.dx #ccNotifPage .ccn-markall { cursor: pointer; }
body.dx #ccNotifPage .ccn-chips { padding-left: 0 !important; padding-right: 0 !important; flex-wrap: wrap; overflow: visible !important; }
body.dx #ccNotifPage .ccn-chip { cursor: pointer; }
body.dx #ccNotifPage .ccn-scroll { overflow: visible !important; flex: none !important; padding-left: 0 !important; padding-right: 0 !important; }
body.dx #ccNotifPage .ccn-row { cursor: pointer; transition: box-shadow .12s ease; }
body.dx #ccNotifPage .ccn-row:hover { box-shadow: inset 0 0 0 2px rgba(30, 122, 51, .18); }
body.dx.ccn-lock { overflow: hidden; }

/* details: a centered window instead of a bottom sheet */
body.dx #ccNotifDetail { align-items: center; }
body.dx #ccNotifDetail .ccnd-sheet { border-radius: 20px; padding: 22px 24px 24px; transform: scale(.97); opacity: 0; transition: transform .18s ease, opacity .18s ease; max-height: calc(100vh - 48px); }
body.dx #ccNotifDetail.open .ccnd-sheet { transform: none; opacity: 1; }
body.dx #ccNotifDetail .ccnd-grab { display: none; }
