/* ===== WATHIQ DESIGN for the viewer (2026-10-20): the DMS font (Expo Arabic, one face) and quiet details.
   Colours come from viewer-wathiq.js (theme variables). ===== */
@font-face { font-family: "Expo Arabic"; src: url("fonts/Expo-Arabic-Regular.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
body.wq-viewer, body.wq-viewer :is(button, input, select, textarea, .mat-mdc-button, .mat-mdc-tab, .mdc-tab__text-label, .mat-mdc-menu-item, .mat-mdc-tooltip, .mat-mdc-option, .mat-mdc-select, .mat-mdc-form-field, span, div, label, a, li, td, th, h1, h2, h3, h4, h5, h6, p) {
  font-family: "Expo Arabic", Arial, sans-serif !important;
}
body.wq-viewer { background: rgb(244, 247, 249); }
/* thin, quiet scrollbars like the DMS */
body.wq-viewer * { scrollbar-width: thin; scrollbar-color: #C5D3DB transparent; }
body.wq-viewer ::-webkit-scrollbar { width: 8px; height: 8px; }
body.wq-viewer ::-webkit-scrollbar-thumb { background: #C5D3DB; border-radius: 8px; }
body.wq-viewer ::-webkit-scrollbar-track { background: transparent; }
/* the PDF reader toolbar and widgets carry the vendor green as literals (main bundle: ngx-extended-pdf-viewer
   .toolbarButton { color: #00ae8d !important }, focus borders, loading percentage, inline SVG fills) */
body.wq-viewer ngx-extended-pdf-viewer .toolbarButton, body.wq-viewer .toolbarButton { color: #35799A !important; }
body.wq-viewer .toolbarButton.toggled, body.wq-viewer .toolbarButton:hover { color: #29485C !important; background-color: rgba(53, 121, 154, 0.08) !important; }
body.wq-viewer ngx-extended-pdf-viewer input:focus, body.wq-viewer ngx-extended-pdf-viewer select:focus { border-color: #35799A !important; }
body.wq-viewer .loading-percentage { color: #35799A !important; }
body.wq-viewer :is([fill="#00AE8D"], [fill="#00ae8d"], [fill="#26B99A"], [fill="#26b99a"]) { fill: #35799A !important; }
body.wq-viewer :is([stroke="#00AE8D"], [stroke="#00ae8d"], [stroke="#26B99A"]) { stroke: #35799A !important; }
body.wq-viewer .spinner { border-top-color: #35799A !important; }
/* surfaces like the DMS: white toolbars on the DMS line colour, the DMS page grey around the document, soft page shadow */
body.wq-viewer #toolbarContainer { background: #fff !important; border-bottom: 1px solid #E1E6E8 !important; box-shadow: none !important; }
body.wq-viewer #toolbarContainer * { border-color: #E1E6E8; }
body.wq-viewer #leftPanel { background: #F7FAFC !important; border-inline-end: 1px solid #E1E6E8 !important; }
body.wq-viewer #viewerContainer, body.wq-viewer #outerContainer, body.wq-viewer #mainContainer { background: #EEF2F5 !important; }
body.wq-viewer #viewerContainer .page { box-shadow: 0 1px 3px rgba(41, 72, 92, .10), 0 8px 24px rgba(41, 72, 92, .08) !important; border: 0 !important; }
body.wq-viewer #toolbarContainer :is(input, select) { border: 1px solid #D5DEE4 !important; border-radius: 8px !important; background: #fff !important; color: #29485C !important; }
body.wq-viewer .LoadSpinner { background: rgba(244, 247, 249, .7) !important; }
/* the theme from the very first paint (the loader showed in green before viewer-wathiq.js ran at APP_INIT) */
html body {
  --primary-color: 53, 121, 154, 1; --primary-lighter-color: 231, 241, 245, 1; --primary-darker-color: 41, 72, 92, 1;
  --accent-color: 241, 246, 249, 1; --accent-lighter-color: 247, 250, 252, 1; --accent-darker-color: 225, 230, 232, 1;
  --theme-background: 244, 247, 249, 1; --theme-dividers: 41, 72, 92, 0.12; --theme-focused: 53, 121, 154, 0.14;
}
/* loaders: spinner, page / document progress bars, loading text */
html body .spinner { border-top-color: #35799A !important; }
html body .LoadSpinner { background: rgba(244, 247, 249, .7) !important; }
html body .mat-progress-bar-fill::after, html body .mat-mdc-progress-bar .mdc-linear-progress__bar-inner { background-color: #35799A !important; border-color: #35799A !important; }
html body .mat-progress-bar-buffer, html body .mat-mdc-progress-bar .mdc-linear-progress__buffer-bar { background-color: #E7F1F5 !important; }
html body .mat-progress-bar-background { fill: #E7F1F5 !important; }
html body .loading-percentage { color: #35799A !important; }
html body .loading-text { color: #6B7785 !important; }

/* 2026-10-21 (DMS "premium surfaces"): the viewer's action bar (Material icon buttons: view, history, print, download, exit)
   = quiet slate icons with a soft hover, like the DMS ghost buttons - no heavy dark glyphs */
html:not(#wq-x) body.wq-viewer:not(#wq-y) :is(button.mat-icon-button, button.mat-mdc-icon-button, button[mat-icon-button]) { color: #4A5866 !important; border-radius: 9px !important; transition: background-color .15s, color .15s; }
html:not(#wq-x) body.wq-viewer:not(#wq-y) :is(button.mat-icon-button, button.mat-mdc-icon-button, button[mat-icon-button]):hover { color: #29485C !important; background-color: rgba(53, 121, 154, .1) !important; }
html:not(#wq-x) body.wq-viewer:not(#wq-y) :is(button.mat-icon-button, button.mat-mdc-icon-button, button[mat-icon-button]) .mat-icon { color: inherit !important; font-size: 21px !important; width: 21px !important; height: 21px !important; }
html:not(#wq-x) body.wq-viewer:not(#wq-y) :is(button.mat-icon-button, button.mat-mdc-icon-button, button[mat-icon-button])[disabled] { opacity: .4 !important; }
html:not(#wq-x) body.wq-viewer:not(#wq-y) :is(button.mat-icon-button, button.mat-mdc-icon-button, button[mat-icon-button]) :is(mat-icon, .mat-icon, svg) { color: #4A5866 !important; fill: currentColor; }
/* the action bar buttons are mat-button.nav-button (view, history, print, download, exit): quiet slate icons, soft hover */
html:not(#wq-x) body.wq-viewer:not(#wq-y) button.nav-button { min-width: 38px !important; height: 38px !important; padding: 0 8px !important; border-radius: 9px !important; line-height: 38px !important; color: #4A5866 !important; transition: background-color .15s, color .15s; }
html:not(#wq-x) body.wq-viewer:not(#wq-y) button.nav-button .mat-icon { color: #4A5866 !important; font-size: 21px !important; width: 21px !important; height: 21px !important; line-height: 21px !important; }
html:not(#wq-x) body.wq-viewer:not(#wq-y) button.nav-button:hover { background-color: rgba(53, 121, 154, .1) !important; }
html:not(#wq-x) body.wq-viewer:not(#wq-y) button.nav-button:hover .mat-icon { color: #29485C !important; }
html:not(#wq-x) body.wq-viewer:not(#wq-y) button.nav-button[disabled] { opacity: .4 !important; }
