@font-face { font-family: iconfont; src: url("/static/fonts/iconfont.46bbeda.woff2") format("woff2"); font-display: block; }
.case-document-shell .iconfont { font-family: iconfont !important; font-style: normal; font-weight: 400; line-height: 1; -webkit-font-smoothing: antialiased; }
.case-document-shell .icon-list::before { content: "\E629"; }
.case-document-shell .icon-sync::before { content: "\E647"; }

.case-document-shell { width: 100%; min-width: 0; display: flex; overflow: hidden; background: transparent; }
.case-document-main { width: 100%; min-width: 0; height: 100%; min-height: 0; overflow: hidden; border-radius: 10px; background: #fff; }
.case-document-main-inner { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; padding-top: 21px; display: flex; flex-direction: column; box-sizing: border-box; }
.case-document-toolbar { position: relative; z-index: 24; min-height: 34px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; }
.case-document-toolbar-left,
.case-document-toolbar-right { display: flex; align-items: center; min-width: 0; }
.case-document-toolbar-left { gap: 10px; }
.case-document-toolbar-right { margin-left: auto; }
.case-document-search { width: 260px; height: 32px; display: flex; align-items: center; }
.case-document-search input { width: 218px; min-width: 0; height: 32px; padding: 0 18px; border: 0; border-radius: 8px 0 0 8px; outline: 0; background: #f4f6fa; color: #606266; font-size: 14px; }
.case-document-search input::placeholder { color: var(--ui-muted, #716a70); }
.case-document-search button { width: 48px; height: 32px; margin-left: -6px; border: 0; border-radius: 10px; background: var(--ui-primary, #b8202b); color: #fff; font-size: 15px; }
.case-document-icon-button { width: 38px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: #f4f6fa; color: #606266; }
.case-document-icon-button i { font-size: 22px; }
.case-document-icon-button:hover,
.case-document-download-button:hover { filter: brightness(.98); color: var(--ui-accent-ink, #a21c27); }
.case-document-reset-button { background: #fff; }
.case-document-download-button { height: 32px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; background: var(--ui-primary, #b8202b); color: #fff; font-size: 14px; white-space: nowrap; }
.case-document-download-button:hover { color: #fff; background: var(--ui-primary, #b8202b); }
.case-document-advanced { position: absolute; z-index: 80; top: 42px; left: 24px; width: 620px; padding: 14px 16px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; border: 1px solid #ebeef5; border-radius: 4px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.case-document-filter-field { min-width: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 8px; color: #606266; font-size: 12px; }
.case-document-filter-field span { text-align: right; }
.case-document-filter-field input { width: 100%; height: 28px; padding: 0 8px; border: 1px solid #dcdfe6; border-radius: 3px; outline: 0; color: #606266; font-size: 12px; }
.case-document-filter-field input:focus { border-color: var(--ui-primary, #b8202b); }
.case-document-filter-date { grid-column: 1 / -1; }
.case-document-filter-date div { display: flex; align-items: center; gap: 8px; }
.case-document-filter-date b { color: #909399; font-weight: 400; }
.case-document-advanced footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.case-document-advanced footer button { height: 26px; padding: 0 14px; border: 1px solid #dcdfe6; border-radius: 3px; background: #fff; color: #606266; font-size: 12px; }
.case-document-advanced footer button:last-child { border-color: var(--ui-primary, #b8202b); background: var(--ui-primary, #b8202b); color: #fff; }

.case-document-table-frame { position: relative; min-width: 0; flex: 1 1 auto; min-height: 0; margin: 20px 24px 0; overflow: auto; border: 1px solid #ebeef5; }
.case-document-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: #111; }
.case-document-table th { position: relative; height: 50px; padding: 0 10px; border-right: 1px solid #fff; border-bottom: 1px solid #ebeef5; background: var(--ui-primary-soft, #fbeaec); color: var(--ui-ink, #343034); font-size: 14px; font-weight: 600; text-align: left; white-space: nowrap; }
.case-document-table td { height: 50px; padding: 0 10px; border-right: 1px solid #ebeef5; border-bottom: 1px solid #ebeef5; overflow: hidden; color: #111; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.case-document-table tr:hover td { background: #f8fbfe; }
.case-document-index { width: 50px; min-width: 50px; max-width: 50px; text-align: center; }
.case-document-check { width: 50px; min-width: 50px; max-width: 50px; text-align: center; }
.case-document-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ui-primary, #b8202b); }
.case-document-table .case-document-sticky-left { position: sticky; left: 0; z-index: 8; background: var(--ui-primary-soft, #fbeaec); }
.case-document-table .case-document-sticky-select { position: sticky; left: 50px; z-index: 8; background: var(--ui-primary-soft, #fbeaec); }
.case-document-table td.case-document-sticky-left,
.case-document-table td.case-document-sticky-select { background: #fff; }
.case-document-table .case-document-operation { position: sticky; right: 0; z-index: 8; width: 60px; min-width: 60px; max-width: 60px; background: #fff; text-align: center; }
.case-document-table th.case-document-operation { background: var(--ui-primary-soft, #fbeaec); }
.case-document-link,
.case-document-project-link { max-width: 100%; padding: 0; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; border: 0; background: transparent; color: #111; vertical-align: middle; text-align: left; }
.case-document-link span,
.case-document-project-link { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.case-document-link i { flex: 0 0 auto; color: var(--ui-muted, #716a70); }
.case-document-project-link:hover,
.case-document-link:hover span { color: var(--ui-accent-ink, #a21c27); }
.case-document-operation button { padding: 4px; border: 0; background: transparent; color: var(--ui-muted, #716a70); font-size: 16px; }
.case-document-empty { position: absolute; inset: 50px 0 0; display: grid; place-content: center; color: #909399; background: #fff; font-size: 13px; }
.case-document-shell .pagination { height: 56px; flex: 0 0 auto; gap: 12px; font-size: 14px; }
.case-document-shell .page-number { width: 36px; height: 34px; border-radius: 8px; }
.case-document-shell .page-number.active { background: var(--ui-primary, #b8202b); color: #fff; }
.case-document-pagination { padding: 8px 24px; justify-content: flex-end; }
.case-document-pagination .page-number[disabled] { opacity: .42; cursor: default; }
.case-document-pagination label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.case-document-pagination label input { width: 52px; height: 32px; padding: 0 6px; border: 1px solid var(--ui-primary-line, #efd0d5); border-radius: 5px; color: var(--ui-ink, #343034); text-align: center; outline: 0; }
.case-document-pagination label input:focus { border-color: var(--ui-primary, #b8202b); }

.case-document-detail-grid {
  padding: 8px 4px;
  grid-template-columns: 112px minmax(0, 1fr) 112px minmax(0, 1fr);
}

.case-document-detail-grid dt,
.case-document-detail-grid dd {
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid #e7edf2;
  line-height: 1.6;
}

.case-document-detail-grid dt {
  background: #f5f8fa;
  color: var(--ui-ink, #343034);
  font-weight: 600;
}

.case-document-detail-grid dd {
  color: var(--ui-ink, #343034);
  overflow-wrap: anywhere;
}

.case-document-checksum {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.case-document-detail-grid .case-document-checksum-label { grid-column: 1; }
.case-document-detail-grid .case-document-checksum-value { grid-column: 2 / -1; }

.case-document-checksum > span {
  padding: 2px 5px;
  border: 1px solid var(--ui-primary-line, #efd0d5);
  border-radius: 3px;
  background: #f3f7f9;
  color: var(--ui-muted, #716a70);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.case-document-checksum code {
  min-width: 0;
  overflow: hidden;
  color: var(--ui-ink, #343034);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-document-checksum button {
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--ui-primary-line, #efd0d5);
  border-radius: 4px;
  background: #fff;
  color: var(--ui-accent-ink, #a21c27);
  cursor: pointer;
  font-size: 12px;
}

.case-document-checksum button:hover,
.case-document-checksum button:focus-visible {
  border-color: var(--ui-primary, #b8202b);
  background: var(--ui-primary-pale, #fff7f8);
  outline: 0;
}

@media (max-width: 820px) {
  .case-document-main { border-radius: 0; }
  .case-document-main-inner { padding-top: 10px; }
  .case-document-toolbar { min-height: 78px; height: auto; padding: 9px 10px; align-items: flex-start; flex-wrap: wrap; }
  .case-document-toolbar-left,
  .case-document-toolbar-right { width: 100%; flex-wrap: wrap; }
  .case-document-search { flex: 1; width: auto; }
  .case-document-search input { flex: 1; }
  .case-document-advanced { left: 10px; right: 10px; width: auto; grid-template-columns: 1fr; }
  .case-document-table-frame { margin: 10px 10px 0; }
  .case-document-shell .pagination { min-width: 0; justify-content: flex-start; padding-left: 10px; overflow-x: auto; }
  .case-document-detail-grid { grid-template-columns: 92px minmax(0, 1fr); }
  .case-document-checksum { grid-template-columns: auto minmax(0, 1fr); }
  .case-document-checksum button { grid-column: 1 / -1; width: max-content; }
}
