/* AA Books Free Web Demonstration — Watermark & Demo Indicators */
.aa-demo-app-wm {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}
.aa-demo-app-wm-inner {
  transform: rotate(-28deg);
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(100, 116, 139, 0.08);
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.25;
  white-space: nowrap;
}
.aa-demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.45);
  white-space: nowrap;
}
html[data-theme="dark"] .aa-demo-badge {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.18);
}
.aa-demo-dash-banner {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}
.aa-demo-dash-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}

/* Invoice & Document Watermark (Preview, Print & html2canvas) */
.doc, .pst-doc {
  position: relative !important;
}
.doc > *:not(.aa-demo-doc-wm),
.pst-doc > *:not(.aa-demo-doc-wm):not(.aa-demo-doc-footer) {
  position: relative;
  z-index: 1;
}
.aa-demo-doc-wm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}
.aa-demo-doc-wm-main {
  transform: rotate(-32deg);
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  color: rgba(100, 116, 139, 0.14);
  line-height: 1.35;
}
.aa-demo-doc-wm-sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-top: 4px;
}
.aa-demo-doc-footer {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dashed rgba(100, 116, 139, 0.35);
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}
.aa-demo-print-repeat {
  display: none;
}

@media print {
  .aa-demo-app-wm,
  .aa-demo-badge,
  .aa-demo-dash-banner {
    display: none !important;
  }
  .aa-demo-doc-wm {
    display: flex !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .aa-demo-print-repeat {
    display: flex !important;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .aa-demo-print-repeat-footer {
    position: fixed;
    bottom: 4mm;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: rgba(71, 85, 105, 0.75);
  }
}
