:root {
  --ink: #17201d;
  --muted: #66736f;
  --paper: #f7f5ef;
  --white: #ffffff;
  --line: #dfe5df;
  --green: #1f6f4a;
  --deep-green: #123d31;
  --blue: #245a7c;
  --copper: #b7652d;
  --gold: #e9c46a;
  --red: #9f3f2f;
  --shadow: 0 18px 48px rgba(18, 61, 49, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.portal-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.portal-brand strong,
.portal-brand small {
  display: block;
}

.portal-brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 13px;
  color: var(--deep-green);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
  min-height: calc(100svh - 74px);
  padding: clamp(34px, 6vw, 76px) clamp(16px, 5vw, 76px);
}

.auth-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-copy h1,
.section-title h2 {
  margin: 0;
  color: var(--deep-green);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.demo-logins {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 18px;
  background: #edf4f1;
  border: 1px solid #cfe0d8;
  border-radius: 8px;
}

.demo-logins span {
  color: var(--muted);
}

.auth-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-panel,
.portal-form {
  display: grid;
  gap: 15px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-panel h2,
.portal-form h2,
.portal-workspace h3 {
  margin: 0;
  color: var(--deep-green);
}

.portal-form label {
  display: grid;
  gap: 7px;
  color: var(--deep-green);
  font-size: 0.9rem;
  font-weight: 800;
}

.portal-form input,
.portal-form select,
.portal-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffefb;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
}

.portal-form textarea {
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--green);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #185a3d;
}

.button-secondary {
  color: var(--deep-green);
  background: #f4ecd7;
  border-color: #dccca6;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-note.is-error {
  color: var(--red);
  font-weight: 800;
}

.app-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: calc(100svh - 74px);
}

.portal-sidebar {
  position: sticky;
  top: 74px;
  align-self: start;
  min-height: calc(100svh - 74px);
  padding: 22px 16px;
  color: var(--white);
  background: var(--deep-green);
}

.account-block {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.account-initials {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  color: var(--deep-green);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 900;
}

.account-block small {
  color: rgba(255, 255, 255, 0.68);
}

.portal-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.nav-item {
  min-height: 42px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.portal-workspace {
  padding: clamp(22px, 4vw, 44px);
}

.workspace-section {
  display: none;
}

.workspace-section.is-active {
  display: block;
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric {
  min-height: 128px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric strong {
  display: block;
  color: var(--deep-green);
  font-size: 1.65rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.metric.good {
  border-top: 5px solid var(--green);
}

.metric.warn {
  border-top: 5px solid var(--copper);
}

.metric.info {
  border-top: 5px solid var(--blue);
}

.two-column,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.action-list,
.activity-list,
.document-list,
.payment-summary,
.event-grid {
  display: grid;
  gap: 12px;
}

.list-item,
.event-item,
.payment-card,
.document-item {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.list-item strong,
.event-item strong,
.document-item strong {
  display: block;
  color: var(--deep-green);
}

.list-item span,
.event-item span,
.document-item span {
  color: var(--muted);
}

.wide-form {
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.process-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  color: var(--deep-green);
  background: #edf4f1;
  border: 1px solid #cfe0d8;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.process-strip span {
  padding-right: 8px;
  border-right: 1px solid #b8d4c6;
}

.process-strip span:last-child {
  padding-right: 0;
  border-right: 0;
}

.kyc-business-fields,
.kyc-individual-fields {
  padding: 18px;
  background: #f7fbf8;
  border: 1px solid #d6e5dc;
  border-radius: 8px;
}

.kyc-business-fields h3,
.kyc-individual-fields h3 {
  margin: 0 0 14px;
}

.verification-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #f4ecd7;
  border: 1px solid #dccca6;
  border-radius: 8px;
}

.verification-card strong,
.verification-card span {
  display: block;
}

.verification-card span,
.table-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.saved-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--muted);
  background: #f7fbf8;
  border: 1px solid #d6e5dc;
  border-radius: 8px;
  font-size: 0.86rem;
}

.saved-signature img {
  display: block;
  width: 120px;
  height: 42px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border: 1px solid #dfe5df;
}

.uploaded-document-list,
.application-documents > div {
  padding: 14px 16px;
  color: var(--deep-green);
  background: #f7fbf8;
  border: 1px solid #d6e5dc;
  border-radius: 8px;
}

.uploaded-document-list strong,
.uploaded-document-list span,
.application-documents strong,
.application-documents span {
  display: block;
}

.uploaded-document-list span,
.application-documents span {
  color: var(--muted);
  font-size: 0.88rem;
}

.uploaded-document-list ul,
.application-documents ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.application-documents {
  min-width: 210px;
}

.table-note {
  font-weight: 700;
}

.super-admin-section[hidden],
.super-admin-only[hidden] {
  display: none !important;
}

a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.span-two {
  grid-column: 1 / -1;
}

.payment-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: var(--deep-green);
  background: #edf4f1;
  border: 1px solid #cfe0d8;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.warn {
  color: #7c4218;
  background: #fff2d3;
  border-color: #e7c474;
}

.status-pill.bad {
  color: #8f3528;
  background: #fbe7e2;
  border-color: #e5afa3;
}

.certificate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.certificate {
  min-height: 360px;
  padding: clamp(24px, 5vw, 54px);
  background: var(--white);
  border: 8px double var(--deep-green);
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.certificate h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.certificate .cert-name {
  margin: 22px 0;
  color: var(--green);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
}

.certificate .cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  text-align: left;
}

.event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-item {
  display: grid;
  gap: 10px;
  align-content: start;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--deep-green);
  background: #edf4f1;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.small-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep-green);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.small-button.danger {
  color: var(--red);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .auth-layout,
  .auth-panels,
  .two-column,
  .admin-grid,
  .event-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    min-height: auto;
  }

  .portal-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-brand img {
    width: 44px;
    height: 44px;
  }

  .topbar-actions,
  .topbar-actions .ghost-link,
  .portal-nav,
  .form-grid {
    width: 100%;
  }

  .topbar-actions .ghost-link,
  .button,
  .portal-nav {
    justify-content: center;
  }

  .portal-nav {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid,
  .certificate .cert-grid {
    grid-template-columns: 1fr;
  }
}


.auth-card {
  width: min(520px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.auth-tab {
  min-height: 52px;
  padding: 12px 10px;
  color: var(--muted);
  background: #fbfaf6;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.auth-tab:hover,
.auth-tab:focus-visible,
.auth-tab.is-active {
  color: var(--white);
  background: var(--deep-green);
}

.auth-form {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-hint {
  margin: -6px 0 2px;
  color: var(--muted);
  font-size: 0.94rem;
}

.auth-field-group {
  display: none;
  gap: 15px;
}

.auth-field-group.is-active {
  display: grid;
}

.certificate {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(794px, 100%);
  aspect-ratio: 210 / 297;
  min-height: auto;
  margin: 0 auto;
  padding: clamp(22px, 3.2vw, 34px) clamp(20px, 4vw, 46px) clamp(76px, 8vw, 104px);
  overflow: hidden;
  color: #1e1c19;
  background:
    radial-gradient(circle at 50% 42%, rgba(140, 205, 93, 0.16), transparent 28%) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(248, 247, 241, 0.94)) padding-box,
    repeating-linear-gradient(35deg, #faf9f4 0, #faf9f4 3px, #f2f0e8 3px, #f2f0e8 5px) padding-box,
    linear-gradient(180deg, #8a650f 0%, #f5d966 18%, #fff0a3 38%, #c99925 62%, #f1d76b 82%, #7b570d 100%) border-box;
  border: 16px solid transparent;
  border-radius: 0;
  box-shadow: 0 22px 70px rgba(18, 61, 49, 0.18);
  text-align: center;
}

.certificate > * {
  position: relative;
  z-index: 1;
}

.cert-content {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.certificate::before {
  position: absolute;
  inset: 20% 18% 28%;
  z-index: 0;
  background: url("Logo.svg") center / contain no-repeat;
  content: "";
  opacity: 0.09;
}

.certificate::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  left: -18px;
  z-index: 0;
  height: 96px;
  background: linear-gradient(135deg, #27a75f, #36bd75 58%, #f1d95a 58%, #f1d95a 72%, #b58f20 72%);
  clip-path: polygon(0 18%, 20% 18%, 24% 42%, 76% 42%, 80% 18%, 100% 18%, 100% 100%, 0 100%);
  content: "";
}

.maintenance-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.maintenance-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: #f8fbf8;
  cursor: pointer;
}

.maintenance-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.maintenance-toggle span {
  display: grid;
  gap: 3px;
}

.maintenance-toggle small {
  color: var(--muted);
}

.certificate.is-empty {
  display: grid;
  place-items: center;
  min-height: 380px;
  border: 8px double var(--deep-green);
  background: var(--white);
}

.certificate.is-empty::before,
.certificate.is-empty::after {
  display: none;
}
.certificate.is-canvas {
  display: block;
  min-height: auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.certificate.is-canvas::before,
.certificate.is-canvas::after {
  display: none;
}

.cert-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  background: #ffffff;
}

.cert-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.certificate .cert-title {
  width: 100%;
  margin: 0 auto;
  color: #191919;
  font-size: clamp(1.02rem, 2.55vw, 1.64rem);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: 0.015em;
  text-align: center;
  text-transform: uppercase;
}

.certificate .cert-title span {
  display: block;
  text-align: center;
  white-space: nowrap;
}

.certificate .cert-title span + span {
  margin-top: -0.04em;
}

.cert-est {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  letter-spacing: 0.04em;
}

.cert-script {
  margin: 22px 0 12px;
  color: #221b18;
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.05;
}

.cert-member-name {
  max-width: 600px;
  margin: 0 auto 16px;
  color: #146c43;
  font-size: clamp(0.94rem, 2.45vw, 1.44rem);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.cert-member-copy,
.cert-obligations {
  max-width: 620px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.92rem, 1.8vw, 1.12rem);
  font-style: italic;
  line-height: 1.24;
}

.cert-year {
  margin: 16px 0 12px;
  color: #202020;
  font-size: clamp(1.22rem, 2.85vw, 1.72rem);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.cert-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 7vw, 78px);
  margin: 42px auto 14px;
  max-width: 620px;
}

.signature-block {
  display: grid;
  gap: 2px;
}

.signature-mark {
  min-height: 34px;
  color: #151515;
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1;
}

.signature-line {
  height: 2px;
  background: #31b66a;
}

.signature-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-style: italic;
}
.cert-qr {
  position: absolute;
  left: clamp(22px, 4vw, 42px);
  bottom: clamp(58px, 6vw, 78px);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: max-content;
  margin: 0;
}

.qr-code {
  display: grid;
  grid-template-columns: repeat(var(--qr-size), 1fr);
  width: 82px;
  aspect-ratio: 1;
  padding: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(20, 108, 67, 0.28);
}

.qr-code span {
  aspect-ratio: 1;
  background: #ffffff;
}

.qr-code span.is-dark {
  background: #16251d;
}

.qr-label {
  color: #146c43;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.cert-number {
  position: absolute;
  left: clamp(18px, 3vw, 30px);
  bottom: clamp(12px, 2vw, 18px);
  z-index: 2;
  margin-top: 0;
  color: #fffef6;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
  text-shadow: 0 1px 2px rgba(18, 61, 49, 0.45);
}

@media (max-width: 720px) {
  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .certificate {
    min-height: auto;
    padding: 14px 16px 54px;
    border-width: 10px;
  }

  .cert-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 8px;
  }

  .certificate .cert-title {
    font-size: clamp(0.68rem, 3.9vw, 0.94rem);
    text-align: center;
    line-height: 0.92;
  }

  .certificate .cert-title span {
    display: block;
    text-align: center;
    white-space: nowrap;
  }

  .certificate .cert-title span + span {
    margin-top: -0.04em;
  }

  .cert-est {
    font-size: 0.78rem;
  }

  .cert-script {
    margin: 12px 0 8px;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .cert-member-name {
    margin-bottom: 10px;
    font-size: clamp(0.64rem, 3.65vw, 0.9rem);
    letter-spacing: 0.03em;
  }

  .cert-member-copy,
  .cert-obligations {
    font-size: clamp(0.76rem, 3.5vw, 0.9rem);
    line-height: 1.18;
  }

  .cert-year {
    margin: 10px 0 8px;
    font-size: clamp(0.9rem, 4.35vw, 1.18rem);
  }

  .cert-signatures {
    gap: 16px;
    margin: 26px auto 8px;
  }

  .cert-qr {
    left: 12px;
    bottom: 42px;
  }

  .qr-code {
    width: 54px;
    padding: 5px;
  }

  .qr-label {
    font-size: 0.46rem;
  }
  .signature-mark {
    min-height: 24px;
    font-size: clamp(0.95rem, 4vw, 1.25rem);
  }

  .signature-line {
    height: 4px;
  }

  .signature-title {
    font-size: 0.76rem;
  }

  .cert-number {
    left: 12px;
    bottom: 12px;
    font-size: 0.64rem;
  }
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html,
  body {
    width: 210mm;
    height: 297mm;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #ffffff !important;
  }

  body {
    display: block !important;
  }

  body > *:not(main),
  main > *:not(#app-view),
  #app-view > *:not(.portal-workspace),
  .portal-workspace > *:not(#section-certificate),
  #section-certificate > *:not(#certificate-card) {
    display: none !important;
  }

  main,
  #app-view,
  .portal-workspace,
  #section-certificate {
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  #section-certificate {
    page-break-after: avoid;
    break-after: avoid;
  }

  .certificate {
    position: fixed !important;
    inset: 0 auto auto 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .certificate.is-canvas {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .cert-canvas {
    width: 210mm !important;
    height: 297mm !important;
  }
}










