/* CareCompile brand: fonts + qualifier label (brand guide v1.0) */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

.cc-qualifier {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #19C2AE;
}


/* dark interface overrides */
:root { --cc-ground: #0B0E0F; --cc-panel: #11181A; --cc-panel-2: #172022; --cc-line: #243032;
        --cc-text: #EEF3F1; --cc-muted: #AAB8B4; --cc-accent: #19C2AE; }
body { background: var(--cc-ground); color: var(--cc-text); }
:is(.bg-white, .bg-gray-50, .bg-gray-100):not(page-container *, .cc-doc-page *, .draw-canvas, :has(img), :has(canvas)) {
  background-color: var(--cc-panel) !important; }
:is(.bg-neutral-100, .bg-neutral-200, .bg-gray-200):not(page-container *, .cc-doc-page *, :has(img)) {
  background-color: var(--cc-panel-2) !important; }
:is(.text-gray-700, .text-gray-900, .text-neutral-700, .text-black):not(page-container *, .cc-doc-page *) {
  color: var(--cc-text) !important; }
:is(.text-gray-400, .text-gray-500, .text-gray-600, .text-neutral-500):not(page-container *, .cc-doc-page *) {
  color: var(--cc-muted) !important; }
:is(.border-gray-300, .border-gray-400, .border-neutral-200, .border-neutral-300) { border-color: var(--cc-line) !important; }
.link, a.link { color: var(--cc-accent); }
/* signature images shown in lists and the audit view: keep them on paper */
img[src*="signature"], img[alt*="ignature"] { background: #FFFFFF; border-radius: 6px; }
.cc-nav-link { color: var(--cc-muted); font-weight: 500; }
.cc-nav-link:hover { color: var(--cc-text); }
/* inside document pages: paper colors (values typed by signers must read on white) */
:is(page-container, .cc-doc-page) *:not(.text-white) { color: #303648 !important; }
/* Hide DocuSeal sales and cloud items that do not apply to our self-hosted install.
   The required "Powered by DocuSeal" attribution on signing pages is NOT touched. */
a.btn-warning[href*="docuseal.com"], a.btn-warning[href*="docuseal.com"] + span,
li:has(> a[href*="docuseal.com"]), li:has(> a[href="/settings/sms"]),
li:has(> a[href="/settings/sso"]), li:has(> a[href="/settings/mcp"]),
li:has(form[action*="testing"]), form[action*="testing"],
#support_channels,
tr:has(a[href*="docuseal.com"]), tr:has(.btn[href*="console.docuseal"]) { display: none !important; }
