/*
DOSSIERBEL — PROPRIETARY SOFTWARE
Copyright © 2026 DossierBel.
All rights reserved.

Official website: https://dossierbel.be

Unauthorized copying, reproduction,
distribution or use of this proprietary
source code is prohibited without
prior written authorization.
*/
@import url('/shared/fonts-local.css');
:root { --doc-bg:#fff; --doc-ink:#12151b; --doc-muted:#555e6c; --doc-line:#e4e7ec; --doc-soft:#f5f6f8; }
html[data-theme=dark] { --doc-bg:#14191f; --doc-ink:#f5f6f8; --doc-muted:#c3cbd5; --doc-line:#35404b; --doc-soft:#1c232c; }
body { margin:0; background:var(--doc-bg); color:var(--doc-ink); font-family:Inter,system-ui,sans-serif; }
html[dir=rtl] body { font-family:'Noto Kufi Arabic',sans-serif; line-height:1.55; }
.documents-page,.documents-page *,.db-reader,.db-reader * { box-sizing:border-box; }
.documents-page { width:100%; max-width:1200px; margin-inline:auto; padding:112px 24px 64px; min-height:80vh; line-height:1.65; text-align:start; }
.documents-page:lang(ar),.documents-page:lang(ar) .doc-card h3 { line-height:1.55; }
.documents-page .as-hero { text-align:center; padding:12px 0 26px; }
.documents-page .as-hero h1 { max-width:920px; margin:0 auto 12px; font-size:44px; font-weight:800; line-height:1.2; letter-spacing:-1.3px; text-wrap:balance; }
.documents-page .as-hero>p { max-width:900px; margin:0 auto; color:var(--doc-muted); font-size:17px; line-height:1.7; }
.doc-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:26px 0 24px; }
.doc-heading h2 { font-size:32px; line-height:1.3; margin:0 0 8px; letter-spacing:-.6px; }
.doc-heading p { margin:0; color:var(--doc-muted); }
.doc-count { white-space:nowrap; font-size:14px; font-weight:600; border:1px solid var(--doc-line); padding:6px 12px; border-radius:24px; }
.doc-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.doc-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--doc-line); border-radius:18px; background:var(--doc-bg); box-shadow:0 4px 16px #17213408; scroll-margin-top:110px; }
.doc-cover { height:230px; padding:20px; background:var(--doc-soft); display:flex; align-items:center; justify-content:center; border-bottom:1px solid var(--doc-line); }
.doc-cover img { display:block; width:100%; height:100%; min-height:0; max-height:100%; object-fit:contain; filter:drop-shadow(0 4px 8px #0002); }
.doc-card-body { padding:24px; display:flex; flex:1; flex-direction:column; align-items:flex-start; }
.doc-card h3 { font-size:20px; line-height:1.45; margin:0 0 10px; font-weight:700; }
.doc-card p { margin:0 0 18px; font-size:16px; color:var(--doc-muted); }
.doc-card p.doc-meta { font-size:14px; margin-top:auto; }
.doc-read { display:inline-flex; align-items:center; justify-content:center; padding:12px 18px; min-height:48px; background:#ffd200; color:#111; text-decoration:none; border:1px solid #ffd200; border-radius:10px; font-size:16px; font-weight:600; line-height:1.5; }
.doc-read:hover { background:#ffe04d; }
.documents-page :is(a,button,input):focus-visible,.db-reader :is(button,input,[tabindex]):focus-visible { outline:3px solid #ffd200; outline-offset:3px; }
.doc-status { color:var(--doc-muted); }
.doc-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.doc-skip:focus { position:fixed; z-index:2147483647; top:8px; left:8px; width:auto; height:auto; margin:0; clip:auto; padding:12px; background:#ffd200; color:#111; }

/* The reader is isolated to this page. Documents retain their original colours. */
.db-reader { position:fixed; inset:0; z-index:2147483647; background:#f2f3fb; color:#151515; font-family:Inter,system-ui,sans-serif; --reader-bar:#fff; --reader-line:#dcdde1; --reader-ink:#151515; --reader-active:#fff1aa; --reader-muted:#5d626a; }
.db-reader[hidden],.db-reader [hidden] { display:none!important; }
.db-reader:lang(ar) { font-family:'Noto Kufi Arabic',sans-serif; line-height:1.55; }
html[data-theme=dark] .db-reader { background:#22252b; --reader-bar:#17191e; --reader-line:#464b54; --reader-ink:#f5f6f8; --reader-active:#514615; --reader-muted:#c3cbd5; color:var(--reader-ink); }
.db-reader button,.db-reader input { font:inherit; color:var(--reader-ink); }
.db-reader button { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-width:44px; min-height:44px; padding:8px; border:1px solid transparent; border-radius:8px; background:transparent; cursor:pointer; touch-action:manipulation; }
.db-reader button:hover { background:var(--reader-active); }
.db-reader button:disabled { opacity:.35; cursor:default; }
.db-reader button[aria-pressed=true] { background:var(--reader-active); border-color:var(--reader-line); }
.db-reader svg { display:block; width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.pdf-top { position:absolute; inset:0 0 auto; height:68px; height:calc(68px + env(safe-area-inset-top,0px)); padding:8px 16px; padding-top:calc(8px + env(safe-area-inset-top,0px)); display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--reader-line); background:var(--reader-bar); z-index:3; }
.pdf-tools { display:flex; align-items:center; gap:6px; }
.pdf-tools>button { width:48px; height:48px; }
.pdf-divider { width:1px; align-self:stretch; margin:8px; background:var(--reader-line); flex-shrink:0; }
.pdf-title { font-size:15px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; margin-inline:auto; }
.pdf-extras { display:flex; align-items:center; gap:4px; }
#pdf-back { gap:8px; }
.db-reader:lang(ar) #pdf-back svg { transform:scaleX(-1); }
#pdf-scroll { position:absolute; inset:calc(68px + env(safe-area-inset-top,0px)) 0 0; overflow:auto; direction:ltr; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-x pan-y; scroll-padding:30px 0 100px; outline:none; }
.db-reader .pdfViewer { padding:32px 0 120px; min-height:100%; --page-border-image:none; }
.db-reader .pdfViewer .page { margin:0 auto 12px; border:0; box-shadow:0 2px 5px #0002; background:white; }
.db-reader .pdfViewer .textLayer { caret-color:#111; }
.db-reader .textLayer .highlight { --highlight-bg-color:#ffe23f99; --highlight-selected-bg-color:#ff9100aa; }
.db-reader[data-tool=hand] #pdf-scroll { cursor:grab; }
.db-reader[data-tool=hand] .textLayer { pointer-events:none; user-select:none; }
.db-reader.pdf-dragging #pdf-scroll { cursor:grabbing; }
.pdf-search-panel { position:absolute; top:calc(80px + env(safe-area-inset-top,0px)); inset-inline-end:24px; width:min(460px,calc(100% - 32px)); border:1px solid var(--reader-line); border-radius:10px; background:var(--reader-bar); box-shadow:0 4px 20px #0002; z-index:4; overflow:hidden; }
.pdf-search-row { display:flex; align-items:center; gap:8px; padding:8px 10px; }
.pdf-search-row:first-child { border-bottom:1px solid var(--reader-line); }
.pdf-search-row>svg { color:var(--reader-muted); width:22px; }
#pdf-query { width:100%; min-width:0; min-height:44px; background:transparent; border:0; border-radius:4px; padding:8px; font-size:16px; }
#pdf-query::placeholder { color:var(--reader-muted); opacity:1; }
#pdf-matches { flex:1; font-size:14px; padding:0 8px; unicode-bidi:plaintext; }
.pdf-search-note { margin:0; padding:0 18px 12px; color:var(--reader-muted); font-size:13px; line-height:1.65; }
#pdf-text-warning:not(:empty) { border-top:1px solid var(--reader-line); padding-top:12px; }
#pdf-text-warning:empty { display:none; }
.pdf-bottom { position:absolute; bottom:calc(22px + env(safe-area-inset-bottom,0px)); left:50%; transform:translateX(-50%); display:flex; align-items:center; direction:ltr; gap:4px; max-width:calc(100% - 24px); padding:8px 14px; border:1px solid var(--reader-line); border-radius:17px; background:var(--reader-bar); box-shadow:0 4px 16px #0002; z-index:3; }
.pdf-page-group,.pdf-zoom-group { display:flex; align-items:center; gap:4px; white-space:nowrap; font-size:20px; }
.db-reader .pdf-bottom input { height:44px; padding:4px 2px; border:1px solid transparent; border-radius:5px; text-align:center; font-size:20px; background:transparent; direction:ltr; }
.db-reader .pdf-bottom input:hover,.db-reader .pdf-bottom input:focus { border-color:var(--reader-line); background:var(--reader-bar); }
#pdf-page { width:46px; }
#pdf-zoom { width:54px; }
#pdf-total { padding-inline:4px; }
.pdf-status { position:absolute; z-index:5; top:45%; left:50%; transform:translate(-50%,-50%); max-width:calc(100% - 32px); padding:20px 24px; border:1px solid var(--reader-line); border-radius:12px; background:var(--reader-bar); text-align:center; box-shadow:0 4px 20px #0002; }
.pdf-status p { margin:0; font-size:16px; line-height:1.65; }
.pdf-status button { margin-top:12px; border-color:var(--reader-line); }

@media(max-width:960px) { .doc-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } #pdf-back span { display:none; } }
@media(max-width:600px) {
  .documents-page { padding:96px 16px 40px; }
  .documents-page .as-hero h1 { font-size:32px; letter-spacing:-.7px; }
  .doc-heading { align-items:flex-start; flex-direction:column; padding-top:12px; gap:10px; }
  .doc-heading h2 { font-size:24px; }
  .doc-grid { grid-template-columns:1fr; gap:20px; }
  .doc-card h3 { font-size:18px; }
  .doc-card-body { padding:20px; }
  .doc-cover { height:240px; }
  .pdf-top { gap:4px; padding-inline:6px; }
  .pdf-tools { gap:2px; }
  .pdf-tools>button { width:44px; height:44px; }
  .pdf-top .pdf-divider { display:none; }
  .pdf-title { position:absolute; top:100%; inset-inline:0; max-width:100%; padding:5px 12px; background:var(--reader-bar); border-bottom:1px solid var(--reader-line); font-size:12px; pointer-events:none; }
  .pdf-extras { margin-inline-start:auto; }
  #pdf-scroll { top:calc(98px + env(safe-area-inset-top,0px)); }
  .pdf-search-panel { top:calc(104px + env(safe-area-inset-top,0px)); inset-inline:12px; width:auto; }
  .pdf-bottom { padding:5px; gap:0; bottom:calc(12px + env(safe-area-inset-bottom,0px)); border-radius:13px; }
  .pdf-bottom .pdf-divider { margin:8px 3px; }
  .pdf-page-group,.pdf-zoom-group { gap:0; font-size:16px; }
  .db-reader .pdf-bottom input { font-size:16px; }
  #pdf-page { width:34px; } #pdf-zoom { width:39px; } #pdf-total { padding-inline:1px; }
  .pdf-bottom svg { width:23px; height:23px; }
}
@media(max-height:450px) and (orientation:landscape) {
  .pdf-search-panel { top:76px; max-height:calc(100% - 148px); overflow:auto; }
  .pdf-bottom { bottom:8px; padding-block:2px; }
  .pdf-title { display:none; } #pdf-scroll { top:68px; }
}
@media(prefers-reduced-motion:reduce) { .db-reader * { scroll-behavior:auto!important; } }
