.cw-report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  background: #f7faff;
}

.cw-report-period {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  flex-wrap: wrap;
  color: #334155;
  font: 700 12px/1.2 "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.cw-report-period label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cw-report-period input[type="date"] {
  min-height: 36px;
  padding: 5px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #172033;
  font: 600 12px "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.cw-report-period input:disabled {
  opacity: .55;
  background: #e9eef5;
}

.cw-report-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-height: 40px !important;
  padding: 8px 14px !important;
  border: 1px solid #1667d9 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #1558ad !important;
  font: 800 13px/1.2 "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif !important;
  white-space: nowrap;
  box-shadow: none !important;
}

.cw-report-button.primary {
  background: #1667d9 !important;
  color: #fff !important;
}

.cw-report-button svg {
  display: block;
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px;
  fill: currentColor;
}

.cw-report-button:disabled {
  opacity: .55;
  cursor: wait;
}

.cw-report-modal[hidden] {
  display: none !important;
}

.cw-report-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 18, 36, .78);
}

.cw-report-dialog {
  width: min(1040px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #edf2f7;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.cw-report-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid #d7e2ef;
}

.cw-report-dialog h2 {
  margin: 0;
  color: #0b1f3a;
  font: 900 18px/1.3 "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.cw-report-dialog header p {
  margin: 3px 0 0;
  color: #64748b;
  font: 600 12px/1.4 "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.cw-report-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cw-report-close {
  width: 40px;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font-size: 23px;
  line-height: 1;
}

.cw-report-pages {
  flex: 1;
  overflow: auto;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.cw-report-pages img {
  display: block;
  width: min(760px, 100%);
  height: auto;
  background: #fff;
  box-shadow: 0 7px 25px rgba(15, 23, 42, .18);
}

@media (max-width: 640px) {
  #nftDetailBox,
  #identityTxBox,
  [data-wallet-notary-root],
  #library-detail,
  .owner-overlay-result,
  [data-notary-activity-root],
  #lookup-result,
  #owner-lookup-result,
  [data-mobile-notary-root] {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #nftDetailBox dd,
  #nftDetailBox p,
  #identityTxBox dd,
  #identityTxBox p,
  #library-detail dd,
  #library-detail p,
  #lookup-result dd,
  #lookup-result p,
  #owner-lookup-result dd,
  #owner-lookup-result p {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .cw-report-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    min-width: 0;
    max-width: 100%;
  }

  .cw-report-period {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cw-report-period > label:last-child {
    grid-column: 1 / -1;
  }

  .cw-report-period input[type="date"] {
    width: 100%;
    min-width: 0;
  }

  .cw-report-button {
    width: 100%;
    min-width: 0 !important;
    padding: 8px 7px !important;
    font-size: 12px !important;
  }

  .cw-report-modal {
    padding: 0;
  }

  .cw-report-dialog {
    border-radius: 0;
  }

  .cw-report-dialog > header {
    align-items: flex-start;
    padding: 11px;
  }

  .cw-report-dialog h2 {
    font-size: 15px;
  }

  .cw-report-header-actions .cw-report-button {
    width: auto;
  }

  .cw-report-pages {
    padding: 12px;
    gap: 12px;
  }
}
