/* Scoped GitHub-like markdown styles for Admin Note viewer modal */
.adm-note-view-wrap {
  width: 100%;
}

.adm-note-view-head {
  border-bottom: 1px solid #d0d7de;
  padding: 0 0 12px;
  margin-bottom: 14px;
}

.adm-note-view-head h2 {
  margin: 0 0 10px;
  color: #24292f;
  font-size: 24px;
  line-height: 1.3;
}

.adm-note-view-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #57606a;
  font-size: 12px;
}

.adm-note-view-meta span {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  padding: 3px 9px;
}

.adm-note-md {
  box-sizing: border-box;
  min-width: 200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px;
  color: #24292f;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

.adm-note-md h1,
.adm-note-md h2,
.adm-note-md h3,
.adm-note-md h4,
.adm-note-md h5,
.adm-note-md h6 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: #24292f;
  border-bottom: 1px solid #d8dee4;
  padding-bottom: 6px;
}

.adm-note-md h1 { font-size: 2em; }
.adm-note-md h2 { font-size: 1.5em; }
.adm-note-md h3 { font-size: 1.25em; }
.adm-note-md h4 { font-size: 1em; }

.adm-note-md p {
  margin-top: 0;
  margin-bottom: 12px;
}

.adm-note-md ul,
.adm-note-md ol {
  margin-top: 0;
  margin-bottom: 12px;
  padding-right: 24px;
  padding-left: 0;
}

.adm-note-md li + li {
  margin-top: 4px;
}

.adm-note-md li input[type="checkbox"] {
  margin-left: 6px;
  margin-right: 0;
  transform: translateY(1px);
}

.adm-note-md del {
  color: #57606a;
}

.adm-note-md blockquote {
  margin: 0 0 12px;
  padding: 0 1em;
  color: #57606a;
  border-right: 0.25em solid #d0d7de;
  border-left: 0;
}

.adm-note-md code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  color: #24292f;
  background-color: rgba(175, 184, 193, 0.2);
  border-radius: 6px;
  direction: ltr;
}

.adm-note-md pre {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  color: #e6edf3;
  background-color: #0d1117;
  border-radius: 6px;
  direction: ltr;
  text-align: left;
}

.adm-note-md pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.adm-note-md a {
  color: #0969da;
  text-decoration: none;
}

.adm-note-md a:hover {
  text-decoration: underline;
}

.adm-note-md img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  margin: 8px 0;
}

.adm-note-md-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 14px;
}

.adm-note-md table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  direction: rtl;
  text-align: right;
}

.adm-note-md table th,
.adm-note-md table td {
  padding: 8px 10px;
  border: 1px solid #d0d7de;
  vertical-align: top;
}

.adm-note-md table th {
  font-weight: 600;
  background: #f6f8fa;
}

.adm-note-md table tr:nth-child(2n) {
  background: #f6f8fa;
}

.adm-note-md hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #d8dee4;
  border: 0;
}
