:root {
  --page: #f0f2f5;
  --panel: #ffffff;
  --line: #d8dadd;
  --line-dark: #c9ccd1;
  --text: #1c1e21;
  --muted: #65676b;
  --blue: #1877f2;
  --chip: #eeeeef;
  --header: #f6f7f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 14px/1.35 Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

.report-page {
  min-height: 100vh;
  padding: 22px 24px;
}

.report-shell {
  max-width: 1200px;
}

.report-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.report-title {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 700;
}

.scope-line {
  color: var(--blue);
  font-weight: 700;
}

.report-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  white-space: nowrap;
}

.meta-copy {
  text-align: right;
  line-height: 1.55;
}

.download-button {
  min-width: 44px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #e4e6eb;
  color: #1d2129;
  cursor: default;
}

.filter-row,
.date-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-row {
  margin-top: 24px;
}

.date-row {
  justify-content: flex-end;
  margin: -25px 8px 24px 0;
  font-size: 15px;
}

.filter-label {
  color: #4b4f56;
}

.chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: #1d2129;
}

.chip strong {
  font-weight: 700;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.report-table {
  width: 100%;
  min-width: var(--table-width, 1168px);
  border-collapse: collapse;
  table-layout: fixed;
}

.report-table th,
.report-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 14px 7px;
  vertical-align: middle;
}

.report-table th {
  height: 39px;
  background: linear-gradient(#fbfbfb, #eeeeef);
  color: #1d2129;
  text-align: left;
  font-weight: 700;
}

.report-table td {
  height: 42px;
  background: #fff;
  text-align: right;
}

.report-table tr.summary-row td {
  font-weight: 700;
}

.cell-value {
  display: inline-block;
  font-size: 15px;
  color: #1d2129;
}

.cell-note {
  margin-left: 4px;
  font-size: 10px;
  color: #4b4f56;
  vertical-align: top;
}

.cell-sub {
  display: block;
  margin-top: 1px;
  color: #777b82;
  font-size: 12px;
  font-weight: 400;
}

.scrollbar-rail {
  height: 13px;
  background: #f7f8fa;
  border-top: 1px solid #eef0f2;
}

.scrollbar-thumb {
  height: 6px;
  margin: 3px 72px 0 4px;
  border-radius: 999px;
  background: #b6b8bc;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 520px) 1fr;
  gap: 0;
  background: #f3f4f6;
}

.editor {
  min-height: 100vh;
  padding: 20px;
  border-right: 1px solid var(--line-dark);
  background: #fff;
  overflow: auto;
}

.editor h1 {
  margin: 0 0 12px;
  font-size: 20px;
}

.editor-actions,
.link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.editor-actions {
  margin-bottom: 14px;
}

.compact-actions {
  align-items: stretch;
  gap: 6px;
}

.compact-actions .secondary {
  height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.primary,
.secondary {
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #ccd0d5;
  background: #e4e6eb;
  color: #050505;
  cursor: pointer;
}

.primary {
  border-color: #0f67dd;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.status {
  min-height: 20px;
  margin: 4px 0 12px;
  color: #137333;
}

.field {
  display: grid;
  gap: 5px;
  margin-bottom: 11px;
}

.field label {
  color: #4b4f56;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #ccd0d5;
  border-radius: 4px;
  background: #fff;
  color: #1c1e21;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.field small {
  color: #777b82;
}

.preview {
  min-width: 0;
  overflow: auto;
}

.preview .report-page {
  min-width: 900px;
}

.readonly-notice {
  display: none !important;
}

.admin-editable {
  min-width: 16px;
  border-radius: 3px;
  outline: 1px dashed transparent;
  cursor: text;
}

.admin-editable:hover,
.admin-editable:focus {
  outline-color: #8ab4f8;
  background: #eef4ff;
}

.admin-editable:empty::before {
  content: "";
}

.admin-editable:hover:empty::before,
.admin-editable:focus:empty::before {
  content: attr(data-placeholder);
  color: #a0a4aa;
  font-weight: 400;
}

.preview::before {
  content: "右侧预览可直接点击文字编辑，改完点左侧保存。";
  display: block;
  padding: 10px 24px 0;
  color: #606770;
  font-size: 12px;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .editor {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .report-top {
    flex-direction: column;
  }

  .report-meta,
  .meta-copy {
    text-align: left;
  }

  .date-row {
    justify-content: flex-start;
    margin-top: 16px;
  }
}


/* offline-facebook-icon-tune */
.download-button {
  width: 40px;
  min-width: 40px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  font-size: 0;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAkCAYAAAD7PHgWAAAB5ElEQVR4nM2Yu4rCQBSG/4yJN0wlaOO76GNoYyH4QLZWVvY2FhaChZ1gaRURMYqNhY3GxLicWROSrOyiZJPzwcBcjHycmTMziXI+nx944jiOLPf7Ha7rIkmEEMhkMlBVVRYPWXs8Hrher1IuLVzXlcW2bSmYz+ehKAoEDV4ul1TlopALBYwQ3pRyw3kuN0Eh5Ypt2xBJJ8M7kBt/QTBHgDkCzFHjWiv1ej3UN5vN5OnAIoL7/R65XC7UZxhGHH8dj6Bpmshms35b13Ucj0c+gtvtFrfbzW9T/XA48BHcbDawLMtvU329XvMRNF6sNxaC1jNqlCRRvCkORvYTFNM0/QvrO+x2O7RaLVmn7SR6ZAb7xuOxTJxEI1ir1VCpVKBp2svbN/XRGFEsFtOZ4sFggGq16osEoT4am0wm8iqfiqCu6+j3+z8kPTkaKxQK6WaxHpCk04SKJ/fpuotFcD6f43Q6hSTL5bIsQTnK5sVikXwWNxoNdDodtNvtX3/X6/UwnU4xGo2Svc3QNrJcLl8mSJDVahV6z32Xj59sNpsYDod/Th+tyW63m/wUJ4UAcwSYI8AcEcd7w39BbvwFtT/2sTTRNA0i+sGQk5yqqt9JQpspfSzkgqIo/musDB3NdalUYvkJ+At8/N7KGeEmaQAAAABJRU5ErkJggg==") center / 40px 36px no-repeat;
}

.download-button::before {
  content: none;
}

.date-row::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: inline-block;
  margin-right: 6px;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA60lEQVR4nK1UOwqEMBAdF9HKA3gYTyBi6xE8jpV4BNsgOVJiYzV2NlkmrCHjbmHcPBiYefDml0+CiAYiIfWDZVlACAHrut4Sl2UJbdtC0zQ2Ts7OKNE0TY866vveJnydBHX0FOKjdWNeR6NKVPEXxnEEKSVctWxnPmhsshC8ICYQ0ZBVVWW2bbM+GfkhHCIa1lmWZV/+XS76mKkf7PvuKh3HEcSxS1vXNfwDKSXvbJ5nVrHrutscgSUrisL5eZ4HcewA6NEqpSAUSimrZcno9Q/DAFprtlh/wVdOa201pCW4AyBE+4JiIOqlfQPn2MLzwF1dDgAAAABJRU5ErkJggg==") center / 19px 19px no-repeat;
}
