.ppj-paper {
  background-color: #e7eef4;
  min-height: 100vh;
}

.ppj-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.ppj-with-icon > .bi {
  display: block;
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.ppj-doc-way {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
}

.ppj-doc-in {
  color: #15803d;
}

.ppj-doc-out {
  color: #dc2626;
}

.ppj-docs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}

button.ppj-docs-icon {
  cursor: pointer;
  appearance: none;
}

.ppj-docs-icon > .bi {
  font-size: 1.25rem;
  line-height: 1;
}

.ppj-docs-icon:hover,
.ppj-docs-icon:focus {
  text-decoration: none;
}

.ppj-docs-icon:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ppj-topbar {
  background: linear-gradient(105deg, #1236d8 0%, #1d4ed8 46%, #06324c 100%);
}

.ppj-menu a,
.ppj-menu .btn,
.ppj-menu a:hover,
.ppj-menu a:focus,
.ppj-menu .btn:hover,
.ppj-menu .btn:focus {
  text-decoration: none;
}

.ppj-account-btn {
  width: 2.1rem;
  padding-left: 0;
  padding-right: 0;
}

.ppj-account .dropdown-menu {
  min-width: 12.5rem;
}

.ppj-account .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 100%;
  color: #212529;
  white-space: nowrap;
}

.ppj-account .dropdown-item > .bi {
  font-size: 16px;
  line-height: 1;
}

.ppj-account .dropdown-item:hover,
.ppj-account .dropdown-item:focus {
  color: #1e2125;
}

.ppj-topbar .container {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.ppj-brand small,
.ppj-topbar .navbar-brand small {
  font-size: 0.68em;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-right: 0.28rem;
  opacity: 0.85;
}

.ppj-topbar .ppj-brand {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: normal;
}

.ppj-docs {
  overflow: hidden;
}

.ppj-docs-head,
.ppj-docs-row {
  display: grid;
  grid-template-columns: 2.75rem minmax(7.5rem, 0.8fr) minmax(0, 1.4fr) minmax(0, 1.4fr) 7.5rem auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
}

.ppj-docs-head {
  color: #5c6b7a;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid #e9ecef;
}

.ppj-docs-row + .ppj-docs-row {
  border-top: 1px solid #eef2f5;
}

.ppj-docs-row:nth-child(even) {
  background-color: #dce6f0;
}

.ppj-docs-row:hover {
  background: lightblue;
}

.ppj-docs-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ppj-docs-end {
  text-align: right;
}

.ppj-docs-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.ppj-docs-action-btns {
  display: inline-flex;
  gap: 0.35rem;
}

.ppj-zip-ok {
  color: #ea580c;
}

.ppj-zip-ok:hover,
.ppj-zip-ok:focus {
  color: #c2410c;
}

.ppj-zip-missing {
  color: #c42323;
}

.ppj-docs-detail {
  color: #1d4ed8;
}

.ppj-docs-detail:hover,
.ppj-docs-detail:focus {
  color: #1e3a8a;
}

@media (max-width: 767.98px) {
  .ppj-docs-head {
    display: none;
  }

  .ppj-docs-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .ppj-docs-cell,
  .ppj-docs-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    text-align: right;
    white-space: normal;
  }

  .ppj-docs-cell::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: left;
  }
}

.ppj-doc-modal .modal-dialog {
  max-width: min(800px, calc(100% - 1rem));
}

.ppj-doc-modal .modal-body,
.ppj-doc-modal .table-responsive {
  max-width: 100%;
  overflow-wrap: break-word;
}

.ppj-doc-modal-header {
  background-color: #1d4ed8;
  color: #fff;
  border-bottom-color: #1e3a8a;
  gap: 0.5rem;
}

.ppj-doc-modal-header .modal-title {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
}

.ppj-doc-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.ppj-doc-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #fff;
  line-height: 1;
}

.ppj-doc-nav-btn > .bi {
  font-size: 1.25rem;
  line-height: 1;
}

.ppj-doc-nav-btn:hover,
.ppj-doc-nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.ppj-doc-nav-btn:disabled {
  opacity: 0.35;
  background: transparent;
}

.ppj-doc-modal-header .btn-close {
  filter: var(--bs-btn-close-white-filter, invert(1) grayscale(100%) brightness(200%));
  opacity: 1;
}

.ppj-doc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  row-gap: 0.35rem;
  margin-bottom: 0;
}

.ppj-doc-meta-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: baseline;
  min-width: 0;
}

.ppj-doc-meta-wide {
  grid-column: 1 / -1;
}

.ppj-doc-meta-label {
  font-weight: 700;
}

.ppj-doc-meta-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .ppj-doc-meta {
    grid-template-columns: 1fr;
  }

  .ppj-doc-meta-wide {
    grid-column: auto;
  }
}

.ppj-doc-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  min-width: 0;
  max-width: 100%;
}

.ppj-doc-state-ok {
  color: #157347;
  font-weight: 600;
}

.ppj-doc-state-bad {
  color: #c42323;
  font-weight: 600;
}

.ppj-doc-download {
  min-width: 0;
}

.ppj-doc-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1rem;
  row-gap: 0.25rem;
  margin-bottom: 0.25rem;
  max-width: 100%;
}

.ppj-doc-payable {
  margin-left: auto;
  max-width: 100%;
  text-align: right;
}

.ppj-2fa-banner {
    background: #b42318;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.55rem 0;
}

.ppj-2fa-banner a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ppj-2fa-banner a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ppj-2fa-setup {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.ppj-qr {
    background: #fff;
    border: 1px solid #d5dee7;
    border-radius: 8px;
    padding: 6px;
}

.ppj-2fa-key {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.ppj-recovery {
    display: grid;
    gap: 0.25rem 1.5rem;
    grid-template-columns: repeat(2, max-content);
}

.ppj-otp {
    letter-spacing: 0.3em;
}

.ppj-verify-banner {
    background: #b54708;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.45rem 0;
}

.ppj-doc-note {
    overflow-wrap: anywhere;
}

.ppj-footer {
    color: #5b6b7a;
    font-size: 0.88rem;
    padding: 1rem 0 2rem;
}

.ppj-terms h2 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
}

.ppj-mcp-tabs .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.9rem 1rem;
}

#stcm-wrapper {
    --boxShadow: -5px 5px 10px 0px #00000012, 0px 0px 50px 0px #0000001a;
    --fontFamily: var(--bs-body-font-family);
    --primaryColor: #0e4d8b;
    --backgroundColor: #ffffff;
    --textColor: #33404d;
    --backdropBackgroundColor: #00000033;
    --backdropBackgroundBlur: 0px;
    --iconColor: #0e4d8b;
    --iconBackgroundColor: #ffffff;
}
