/* ── Notice View Page ── */
    .nv-meta-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 24px;
      align-items: center;
      padding: 12px 0 18px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 24px;
    }
    .nv-meta-bar .meta-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--text-muted);
      font-family: var(--font-ui);
    }
    .nv-meta-bar .meta-item i { color: var(--primary-light); font-size: 14px; }
    .nv-title {
      font-family: var(--font-heading);
      font-size: 1.55rem;
      font-weight: 700;
      color: var(--text-dark);
      line-height: 1.35;
      margin-bottom: 12px;
    }
    .nv-body-text {
      font-size: 15px;
      color: var(--text-body);
      line-height: 1.85;
    }
    .nv-body-text p { margin-bottom: 1rem; }

    /* ── Attachment tabs ── */
    .attach-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }
    .attach-tab-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 7px 16px;
      border-radius: var(--radius-full);
      border: 1.5px solid var(--border-dark);
      background: var(--bg-subtle);
      color: var(--text-body);
      font-size: 13px;
      font-family: var(--font-ui);
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }
    .attach-tab-btn.active,
    .attach-tab-btn:hover {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }
    .attach-panel { display: none; }
    .attach-panel.active { display: block; }

    /* ── PDF Viewer ── */
    .pdf-viewer-wrap {
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      background: #f4f4f4;
    }
    .pdf-viewer-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px;
      background: var(--primary);
      color: #fff;
      gap: 12px;
      flex-wrap: wrap;
    }
    .pdf-toolbar-left { display: flex; align-items: center; gap: 10px; font-size: 13px; font-family: var(--font-ui); }
    .pdf-toolbar-right { display: flex; align-items: center; gap: 8px; }
    .pdf-nav-btn {
      width: 32px; height: 32px;
      border-radius: 6px;
      border: 1.5px solid rgba(255,255,255,.35);
      background: rgba(255,255,255,.1);
      color: #fff;
      font-size: 14px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background .2s;
    }
    .pdf-nav-btn:hover { background: rgba(255,255,255,.25); }
    .pdf-nav-btn:disabled { opacity: .4; cursor: default; }
    .pdf-page-info { font-size: 13px; font-family: var(--font-ui); white-space: nowrap; }
    .pdf-zoom-btn {
      width: 32px; height: 32px;
      border-radius: 6px;
      border: 1.5px solid rgba(255,255,255,.35);
      background: rgba(255,255,255,.1);
      color: #fff;
      font-size: 15px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background .2s;
    }
    .pdf-zoom-btn:hover { background: rgba(255,255,255,.25); }
    .pdf-dl-btn {
      display: flex; align-items: center; gap: 6px;
      padding: 5px 14px;
      border-radius: 6px;
      border: 1.5px solid rgba(255,255,255,.5);
      background: rgba(255,255,255,.15);
      color: #fff;
      font-size: 12px;
      font-family: var(--font-ui);
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: background .2s;
    }
    .pdf-dl-btn:hover { background: rgba(255,255,255,.3); color: #fff; }
    .pdf-canvas-area {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: 24px;
      min-height: 500px;
      overflow: auto;
      background: #e8e8e8;
    }
    #pdfCanvas {
      box-shadow: 0 4px 24px rgba(0,0,0,.25);
      display: block;
      max-width: 100%;
    }
    .pdf-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      min-height: 400px;
      color: var(--text-muted);
      font-family: var(--font-ui);
      font-size: 14px;
    }
    .pdf-loading .spinner-border { width: 2.5rem; height: 2.5rem; color: var(--primary); }
    .pdf-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      min-height: 420px;
      color: var(--text-muted);
      font-family: var(--font-ui);
      text-align: center;
      padding: 40px;
    }
    .pdf-placeholder i { font-size: 64px; color: var(--accent); opacity: .5; }
    .pdf-placeholder h5 { font-size: 16px; color: var(--text-body); margin: 0; }
    .pdf-placeholder p { font-size: 13px; margin: 0; max-width: 320px; }

    /* ── Image Viewer ── */
    .img-viewer-wrap {
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }
    .img-viewer-main {
      position: relative;
      background: #111;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 400px;
      overflow: hidden;
    }
    .img-viewer-main img {
      max-width: 100%;
      max-height: 520px;
      object-fit: contain;
      display: block;
      transition: opacity .3s ease;
    }
    .img-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 44px; height: 44px;
      border-radius: 50%;
      background: rgba(0,0,0,.55);
      border: none;
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background .2s;
      z-index: 5;
    }
    .img-nav-btn:hover { background: var(--primary); }
    .img-nav-btn.prev { left: 14px; }
    .img-nav-btn.next { right: 14px; }
    .img-counter {
      position: absolute;
      bottom: 12px; right: 16px;
      background: rgba(0,0,0,.55);
      color: #fff;
      font-size: 12px;
      font-family: var(--font-ui);
      padding: 3px 10px;
      border-radius: var(--radius-full);
    }
    .img-expand-btn {
      position: absolute;
      top: 12px; right: 14px;
      width: 36px; height: 36px;
      border-radius: 8px;
      background: rgba(0,0,0,.5);
      border: none;
      color: #fff;
      font-size: 16px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background .2s;
    }
    .img-expand-btn:hover { background: var(--primary); }
    .img-thumbs {
      display: flex;
      gap: 8px;
      padding: 12px;
      background: var(--bg-subtle);
      border-top: 1px solid var(--border);
      overflow-x: auto;
      flex-wrap: wrap;
    }
    .img-thumb {
      width: 72px; height: 56px;
      border-radius: 6px;
      overflow: hidden;
      border: 2.5px solid transparent;
      cursor: pointer;
      flex-shrink: 0;
      transition: border-color .2s;
    }
    .img-thumb.active { border-color: var(--primary); }
    .img-thumb img {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
      transition: opacity .2s;
    }
    .img-thumb:hover { border-color: var(--primary-light); }
    /* Single image (no thumbs needed) */
    .img-viewer-wrap.single .img-thumbs { display: none; }
    .img-viewer-wrap.single .img-nav-btn { display: none; }
    .img-viewer-wrap.single .img-counter { display: none; }

    /* ── Fullscreen lightbox ── */
    .nv-lightbox {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.92);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity .25s;
    }
    .nv-lightbox.open { opacity: 1; pointer-events: all; }
    .nv-lightbox img {
      max-width: 92vw;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 6px;
      box-shadow: 0 8px 60px rgba(0,0,0,.6);
      display: block;
    }
    .nv-lb-close {
      position: fixed;
      top: 18px; right: 22px;
      width: 42px; height: 42px;
      background: rgba(255,255,255,.12);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
    }
    .nv-lb-close:hover { background: var(--accent); }

    /* ── Action strip ── */
    .nv-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      padding: 20px 0 0;
      border-top: 1px solid var(--border);
      margin-top: 28px;
    }
    .nv-actions .btn-back {
      display: flex; align-items: center; gap: 6px;
      padding: 8px 18px;
      border-radius: var(--radius);
      background: var(--bg-subtle);
      border: 1.5px solid var(--border-dark);
      color: var(--text-body);
      font-size: 13px;
      font-family: var(--font-ui);
      font-weight: 600;
      text-decoration: none;
      transition: var(--transition);
    }
    .nv-actions .btn-back:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
    .nv-actions .btn-print {
      display: flex; align-items: center; gap: 6px;
      padding: 8px 18px;
      border-radius: var(--radius);
      background: var(--bg-subtle);
      border: 1.5px solid var(--border-dark);
      color: var(--text-body);
      font-size: 13px;
      font-family: var(--font-ui);
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }
    .nv-actions .btn-print:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
    .nv-actions .btn-share {
      display: flex; align-items: center; gap: 6px;
      padding: 8px 18px;
      border-radius: var(--radius);
      background: var(--bg-subtle);
      border: 1.5px solid var(--border-dark);
      color: var(--text-body);
      font-size: 13px;
      font-family: var(--font-ui);
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }
    .nv-actions .btn-share:hover { background: var(--green); border-color: var(--green); color: #fff; }

    /* ── Sidebar: related notices ── */
    .related-notice-item {
      display: flex;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
      text-decoration: none;
      transition: var(--transition);
    }
    .related-notice-item:last-child { border-bottom: none; }
    .related-notice-item:hover .rni-title { color: var(--primary-light); }
    .rni-date {
      min-width: 46px;
      text-align: center;
      background: var(--primary-pale);
      border-radius: var(--radius);
      padding: 4px 6px;
      font-family: var(--font-ui);
    }
    .rni-date .d-num { font-size: 18px; font-weight: 800; color: var(--primary); line-height: 1; }
    .rni-date .d-mon { font-size: 10px; color: var(--primary-light); font-weight: 600; text-transform: uppercase; }
    .rni-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-dark);
      line-height: 1.4;
      transition: var(--transition);
    }
    .rni-tag { font-size: 10px; color: var(--text-muted); font-family: var(--font-ui); margin-top: 4px; }

    /* dark mode additions */
    [data-theme="dark"] .pdf-viewer-toolbar { background: var(--primary-mid); }
    [data-theme="dark"] .pdf-canvas-area { background: #1a1a1a; }
    [data-theme="dark"] .pdf-viewer-wrap { background: #111; border-color: #2d3748; }
    [data-theme="dark"] .img-viewer-wrap { border-color: #2d3748; }
    [data-theme="dark"] .img-thumbs { background: #1a2332; border-top-color: #2d3748; }
    [data-theme="dark"] .attach-tab-btn { background: #1f2937; border-color: #374151; color: #d1d5db; }
    [data-theme="dark"] .nv-actions .btn-back,
    [data-theme="dark"] .nv-actions .btn-print,
    [data-theme="dark"] .nv-actions .btn-share { background: #1f2937; border-color: #374151; color: #d1d5db; }
    [data-theme="dark"] .rni-date { background: #1e3a5f; }
