:root {
  color-scheme: light;
}

.ant-card {
  border-radius: 8px !important;
}

.ant-layout-sider button {
  appearance: none;
  border: 0;
  color: inherit;
  font: inherit;
  width: 100%;
}

.pro-panel {
  background: #fff;
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  padding: 16px;
}

.pro-panel h2,
.pro-panel p {
  margin: 0;
}

.pro-panel-head,
.pro-toolbar,
.pro-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.pro-panel-head {
  border-bottom: 1px solid #edf1f5;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.pro-panel-head h2 {
  color: #17212b;
  font-size: 16px;
  line-height: 1.4;
}

.pro-panel-head p,
.pro-count {
  color: #64748b;
  font-size: 12px;
  margin-top: 4px;
}

.pro-toolbar {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.pro-toolbar > input {
  border: 1px solid #ccd6e0;
  border-radius: 6px;
  flex: 1 1 280px;
  min-height: 38px;
  min-width: 180px;
  padding: 8px 10px;
}

.pro-button {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  color: #253444;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  text-decoration: none;
  width: auto;
}

.pro-button:hover {
  border-color: #1677ff;
  color: #0958d9;
}

.pro-button.primary {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}

.pro-button:disabled {
  cursor: wait;
  opacity: .6;
}

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

.pro-field {
  color: #334155;
  display: grid;
  font-size: 12px;
  font-weight: 600;
  gap: 5px;
  min-width: 0;
}

.pro-field-full {
  grid-column: 1 / -1;
}

.pro-field input,
.pro-field select,
.pro-field textarea,
.pro-draft-editor {
  background: #fff;
  border: 1px solid #ccd6e0;
  border-radius: 6px;
  color: #17212b;
  font: inherit;
  font-weight: 400;
  min-height: 36px;
  padding: 8px 10px;
  width: 100%;
}

.pro-field textarea,
.pro-draft-editor {
  line-height: 1.65;
  resize: vertical;
}

.pro-actions {
  border-top: 1px solid #edf1f5;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 12px;
}

.pro-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.pro-table {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 980px;
  width: 100%;
}

.pro-table th,
.pro-table td {
  border-bottom: 1px solid #e8edf2;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.pro-table th {
  background: #f7f9fb;
  color: #51606f;
  font-size: 11px;
  white-space: nowrap;
}

.pro-table td small {
  color: #718096;
  display: block;
  margin-top: 3px;
}

.pro-empty {
  color: #718096;
  padding: 36px !important;
  text-align: center !important;
}

.pro-row-actions {
  white-space: nowrap;
}

.pro-row-actions button {
  background: transparent;
  border: 0;
  color: #0958d9;
  cursor: pointer;
  font-size: 12px;
  margin-right: 10px;
  padding: 0;
}

.pro-row-actions button.danger {
  color: #b42318;
}

.pro-hash {
  font-family: Consolas, monospace;
  white-space: nowrap;
}

.pro-draft-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.pro-draft-editor {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
  min-height: 520px;
}

.pro-review-box {
  align-items: end;
  background: #f7f9fb;
  border: 1px solid #e3e9ef;
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  margin-top: 12px;
  padding: 10px;
}

.pro-review-box > label:not(.pro-field) {
  color: #334155;
  font-size: 12px;
  padding-bottom: 9px;
}

.pro-status {
  border: 1px solid #d5dde5;
  border-radius: 4px;
  color: #586779;
  font-size: 11px;
  padding: 3px 7px;
}

.pro-status.draft {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.pro-status.approved {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.pro-notice {
  background: #fff8e6;
  border: 1px solid #f4d38a;
  border-radius: 6px;
  color: #755000;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.pro-source-list {
  display: grid;
  gap: 10px;
}

.pro-source-list article {
  align-items: center;
  border: 1px solid #e3e9ef;
  border-radius: 6px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 12px;
}

.pro-source-list p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .pro-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .pro-review-box {
    align-items: start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pro-panel {
    padding: 12px;
  }

  .pro-form-grid {
    grid-template-columns: 1fr;
  }

  .pro-field-full {
    grid-column: auto;
  }

  .pro-toolbar,
  .pro-actions,
  .pro-source-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .pro-button,
  .pro-toolbar > input {
    width: 100%;
  }

  .pro-draft-editor {
    min-height: 420px;
  }
}
.law-main-nav {
  border: 0;
  text-align: left;
  width: 100%;
}

@media (max-width: 640px) {
  .documentMeta {
    align-items: flex-start;
    gap: 8px;
    min-height: 50px;
    padding: 8px 12px;
  }

  .documentMeta > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .documentMeta .fileButton {
    flex: 0 0 auto;
    margin-left: 0;
    white-space: nowrap;
  }
}
