.documents-workspace {
  --dw-bg: #090b0e;
  --dw-panel: #101318;
  --dw-panel-raised: #15191f;
  --dw-line: #30353d;
  --dw-line-strong: #555d67;
  --dw-muted: #9ba2ac;
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: calc(100dvh - 154px);
  color: #f3f5f7;
  letter-spacing: 0;
}

.documents-workspace,
.documents-workspace * { box-sizing: border-box; }

.docs-hub-bar > *,
.docs-registry-layout > *,
.docs-fields-layout > *,
.docs-template-layout > *,
.docs-command-bar > *,
.docs-fields-workspace > * { min-width: 0; }

.docs-hub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dw-line);
}

.docs-hub-tabs,
.docs-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs-hub-tabs {
  min-width: 0;
  padding: 4px;
  overflow: auto hidden;
  border: 1px solid var(--dw-line);
  border-radius: 8px;
  background: #0d1014;
  scrollbar-width: none;
}

.docs-hub-tabs::-webkit-scrollbar { display: none; }

.docs-hub-tab {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #b9bec6;
  white-space: nowrap;
}

.docs-hub-tab i { width: 17px; height: 17px; }
.docs-hub-tab b {
  min-width: 23px;
  padding: 2px 6px;
  border: 1px solid #393f47;
  border-radius: 12px;
  color: #cbd0d7;
  font-size: 11px;
  text-align: center;
}
.docs-hub-tab:hover { background: #171b20; color: #fff; }
.docs-hub-tab.is-active {
  border-color: #737b85;
  background: #1b1f24;
  color: #fff;
  box-shadow: 0 8px 20px #0007;
}

.docs-nav-actions { flex: none; }
.docs-nav-actions { justify-content: flex-end; flex-wrap: wrap; }
.docs-nav-actions .button { gap: 7px; }
.docs-nav-actions i { width: 16px; height: 16px; }

.docs-registry-workspace,
.docs-fields-workspace {
  display: grid;
  min-height: 0;
  border: 1px solid var(--dw-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--dw-bg);
}

.docs-registry-workspace { grid-template-rows: auto auto minmax(0, 1fr); }
.docs-fields-workspace { grid-template-columns: 230px minmax(0, 1fr); }

.docs-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--dw-line);
  background: #0d1014;
}

.docs-kpi-card {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #2d3239;
  border-radius: 7px;
  background: linear-gradient(145deg, #171b20, #101318);
  box-shadow: inset 0 1px #ffffff08;
}

.docs-kpi-card > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid #383e46;
  border-radius: 50%;
  background: #1c2026;
  color: #d7dbe0;
}

.docs-kpi-card svg { width: 17px; height: 17px; }
.docs-kpi-card div { min-width: 0; }
.docs-kpi-card small,
.docs-kpi-card strong,
.docs-kpi-card em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-kpi-card small { color: #a8afb8; font-size: 11px; }
.docs-kpi-card strong { margin-top: 3px; color: #f7f8f9; font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.docs-kpi-card em { margin-top: 4px; color: #858d97; font-size: 10px; font-style: normal; }

.docs-command-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 155px 145px 145px auto auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--dw-line);
  background: #0d1014;
}

.docs-search { position: relative; display: flex; align-items: center; }
.docs-search i { position: absolute; left: 12px; width: 17px; color: #9ca3ad; pointer-events: none; }
.docs-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding-left: 38px;
  border: 1px solid var(--dw-line);
  border-radius: 6px;
  background: #101319;
  color: #fff;
}

.docs-compact-filter,
.docs-date-filter {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--dw-muted);
  font-size: 10px;
}

.docs-compact-filter select,
.docs-date-filter input,
.docs-field-editor input,
.docs-field-editor select,
.docs-field-editor textarea,
.docs-template-settings input,
.docs-template-preview select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--dw-line);
  border-radius: 6px;
  background: #0a0c0f;
  color: #f5f6f8;
}

.docs-command-bar > .icon-button,
.docs-command-bar > .button { min-height: 40px; }

.docs-registry-layout,
.docs-fields-layout,
.docs-template-layout {
  display: grid;
  min-height: 0;
  overflow: hidden;
  background: var(--dw-bg);
}

.docs-registry-layout { grid-template-columns: minmax(620px, 1fr) 360px; }
.docs-fields-layout { grid-template-columns: minmax(520px, 1fr) 370px; }
.docs-template-layout {
  grid-template-columns: 250px 350px minmax(420px, 1fr);
  border: 1px solid var(--dw-line);
  border-radius: 8px;
}

.docs-registry-main,
.docs-fields-main,
.docs-template-settings { min-width: 0; background: #0d1014; }

.docs-registry-main {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.docs-table-summary {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 16px 5px;
  color: var(--dw-muted);
  font-size: 11px;
}
.docs-table-summary strong { color: #f4f5f7; font-size: 16px; }

.docs-table-head,
.docs-table-row {
  display: grid;
  grid-template-columns: 1.15fr .72fr .88fr 1.25fr .8fr .9fr;
  align-items: center;
  gap: 12px;
}

.docs-table-head {
  padding: 9px 16px;
  border-bottom: 1px solid var(--dw-line);
  color: #9299a3;
  font-size: 11px;
}

.docs-table-body,
.docs-fields-list,
.docs-template-list,
.docs-inspector,
.docs-field-editor,
.docs-template-settings { min-height: 0; overflow: auto; scrollbar-width: none; }

.docs-table-body::-webkit-scrollbar,
.docs-fields-list::-webkit-scrollbar,
.docs-template-list::-webkit-scrollbar,
.docs-inspector::-webkit-scrollbar,
.docs-field-editor::-webkit-scrollbar,
.docs-template-settings::-webkit-scrollbar { display: none; }

.docs-table-row {
  width: 100%;
  min-height: 60px;
  padding: 9px 16px;
  border: 0;
  border-bottom: 1px solid #262b32;
  background: transparent;
  color: #d7dbe0;
  text-align: left;
}

.docs-table-row:hover,
.docs-table-row.is-selected { background: #191d23; }
.docs-table-row.is-selected { box-shadow: inset 2px 0 #b9c0c8; }
.docs-cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-cell small,
.docs-template-row small,
.docs-field-row small { display: block; margin-top: 3px; color: #8f96a0; }
.docs-number strong { display: block; color: #f6f7f8; }
.docs-amount { font-variant-numeric: tabular-nums; }
.docs-status { display: flex; align-items: center; }

.docs-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  margin-right: 7px;
  border-radius: 50%;
  background: #78808a;
}
.docs-status-dot.is-success { background: #4bb675; }
.docs-status-dot.is-danger { background: #d65b5b; }

.docs-inspector,
.docs-field-editor,
.docs-template-preview,
.docs-template-list {
  padding: 15px;
  background: #111419;
}
.docs-inspector,
.docs-field-editor,
.docs-template-preview { border-left: 1px solid var(--dw-line); }
.docs-template-list { border-right: 1px solid var(--dw-line); }

.docs-inspector { display: flex; flex-direction: column; }
.docs-inspector > header,
.docs-field-editor > header,
.docs-template-preview > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.docs-inspector h3,
.docs-field-editor h3,
.docs-template-preview h3 { margin: 3px 0 0; }
.docs-inspector > header span,
.docs-field-editor > header span,
.docs-template-settings > header span { color: var(--dw-muted); font-size: 11px; }
.docs-inspector-status {
  display: flex;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--dw-line);
  border-radius: 15px;
  background: #0b0e12;
  color: #d7dce2;
  font-size: 11px;
}
.docs-document-preview {
  display: grid;
  min-height: 142px;
  margin: 14px 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid #343a42;
  border-radius: 7px;
  background: #262b31;
}
.docs-preview-sheet {
  display: grid;
  width: 126px;
  min-height: 110px;
  align-content: start;
  gap: 5px;
  padding: 12px 10px;
  background: #fff;
  color: #111;
  box-shadow: 0 12px 28px #0009;
  font: 7px Arial, sans-serif;
}
.docs-preview-sheet > strong { font-size: 9px; text-align: center; text-transform: uppercase; }
.docs-preview-sheet > small { padding-bottom: 5px; border-bottom: 1px solid #111; text-align: center; }
.docs-preview-sheet > span { height: 7px; border-bottom: 1px solid #888; }
.docs-preview-sheet > b { margin-top: 3px; text-align: right; }
.docs-inspector dl { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 0; }
.docs-inspector dl div { min-width: 0; }
.docs-inspector dt { color: var(--dw-muted); font-size: 11px; }
.docs-inspector dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.docs-readonly { display: flex; gap: 8px; padding: 10px; border: 1px solid #665632; border-radius: 6px; color: #e7c978; font-size: 12px; }
.docs-readonly i { width: 16px; }
.docs-timeline-section { margin-top: 16px; }
.docs-status-timeline { display: grid; gap: 0; }
.docs-status-timeline > div { position: relative; display: grid; grid-template-columns: 15px 1fr; gap: 9px; min-height: 42px; }
.docs-status-timeline > div:not(:last-child)::after { content: ""; position: absolute; top: 13px; bottom: -2px; left: 5px; width: 1px; background: #3a4048; }
.docs-status-timeline > div > i { z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 2px solid #626a74; border-radius: 50%; background: #111419; }
.docs-status-timeline > div.is-done > i { border-color: #4bb675; background: #4bb675; box-shadow: 0 0 0 3px #244432; }
.docs-status-timeline span strong,
.docs-status-timeline span small { display: block; }
.docs-status-timeline span strong { color: #dfe3e7; font-size: 11px; }
.docs-status-timeline span small { margin-top: 3px; color: #858d97; font-size: 10px; }
.docs-file { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 9px; border-bottom: 1px solid #292e35; color: #e4e7eb; text-decoration: none; }
.docs-file > i { width: 17px; }
.docs-inspector-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.docs-inspector-actions .button { flex: 1; }
.docs-inspector-actions .button { min-width: 0; }
.docs-inspector-actions .button { gap: 6px; }
.docs-inspector-actions svg { width: 15px; height: 15px; }
.docs-empty-note { color: var(--dw-muted); font-size: 12px; }

.docs-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.docs-section-title h3,
.docs-section-title h4 { margin: 0; }
.docs-section-title span { color: var(--dw-muted); }

.docs-field-groups {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border-right: 1px solid var(--dw-line);
  background: #101318;
}
.docs-field-groups-scroll { display: grid; min-height: 0; align-content: start; gap: 5px; overflow: auto; scrollbar-width: none; }
.docs-field-groups-scroll::-webkit-scrollbar { display: none; }
.docs-field-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 55px;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #c9ced5;
  text-align: left;
}
.docs-field-group i { width: 16px; }
.docs-field-group > span { min-width: 0; }
.docs-field-group strong,
.docs-field-group small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-field-group small { margin-top: 3px; color: #858d97; font-size: 9px; }
.docs-field-group b { min-width: 22px; padding: 2px 6px; border: 1px solid #3a4048; border-radius: 12px; font-size: 10px; }
.docs-field-group:hover,
.docs-field-group.is-active { border-color: #555d67; background: #1b1f25; color: #fff; }

.docs-fields-main { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.docs-fields-main > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--dw-line); }
.docs-fields-main > header span { color: var(--dw-muted); font-size: 11px; }
.docs-fields-main h3 { margin: 3px 0 0; }
.docs-fields-columns,
.docs-field-row { display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(110px, .8fr) 92px 100px; align-items: center; gap: 12px; }
.docs-fields-columns { padding: 9px 16px; color: #9198a2; font-size: 11px; }
.docs-field-row { width: 100%; min-height: 60px; padding: 9px 16px; border: 0; border-top: 1px solid #292e35; background: transparent; color: #d9dde2; text-align: left; }
.docs-field-row:hover,
.docs-field-row.is-selected { background: #1a1e24; }
.docs-field-row.is-selected { box-shadow: inset 2px 0 #b8bec7; }
.docs-field-row > span { min-width: 0; }
.docs-field-flag { display: flex; align-items: center; gap: 7px; color: #969ea8; font-size: 11px; }
.docs-field-flag i { display: block; width: 25px; height: 14px; padding: 2px; border-radius: 8px; background: #3b4149; }
.docs-field-flag i::after { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: #b4bac2; }
.docs-field-flag.is-on { color: #d8dce1; }
.docs-field-flag.is-on i { background: #356f4d; }
.docs-field-flag.is-on i::after { transform: translateX(11px); background: #fff; }

.docs-field-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.docs-field-editor > label,
.docs-field-form label,
.docs-template-settings > label { display: grid; gap: 6px; margin-top: 14px; color: #c6cbd2; font-size: 12px; }
.docs-field-editor textarea { min-height: 78px; resize: vertical; }
.docs-field-options.is-muted { opacity: .55; }
.docs-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #292e35; }
.docs-switch-row strong,
.docs-switch-row small { display: block; }
.docs-switch-row small { margin-top: 3px; color: var(--dw-muted); font-size: 11px; }
.switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; clip-path: inset(50%); }
.switch span { display: block; width: 34px; height: 19px; padding: 2px; border-radius: 12px; background: #424850; transition: background .16s; }
.switch span::after { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: #d6d9dd; transition: transform .16s; }
.switch input:checked + span { background: #397d55; }
.switch input:checked + span::after { transform: translateX(15px); background: #fff; }
.docs-field-editor fieldset { margin: 14px 0; padding: 11px; border: 1px solid var(--dw-line); border-radius: 6px; }
.docs-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.docs-check-grid label { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.docs-check-grid input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: #72c994; }
.docs-field-preview { margin: 12px 0; padding: 11px; border: 1px solid var(--dw-line); border-radius: 6px; background: #0a0d11; }
.docs-field-preview > span { display: block; margin-bottom: 9px; color: var(--dw-muted); font-size: 11px; }
.docs-field-preview label { display: grid; gap: 6px; font-size: 12px; }

.docs-template-row {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #c9ced5;
  text-align: left;
}
.docs-template-row > i { width: 19px; }
.docs-template-row span { min-width: 0; flex: 1; }
.docs-template-row strong,
.docs-template-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-template-row:hover,
.docs-template-row.is-active { border-color: #4b525c; background: #1b1f25; color: #fff; }
.docs-template-settings { padding: 15px; }
.docs-template-settings h3 { margin: 3px 0 0; }
.docs-template-settings section { margin-top: 14px; padding: 11px; border: 1px solid var(--dw-line); border-radius: 7px; background: #0a0d11; }
.docs-template-settings h4 { margin: 0 0 6px; }
.docs-template-column { display: flex; align-items: center; justify-content: space-between; padding: 8px; border-top: 1px solid #292e35; }
.docs-template-column small { color: var(--dw-muted); }
.docs-template-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.docs-template-actions .button { min-width: 0; }
.docs-template-preview { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-width: 0; }
.docs-template-preview > header { align-items: center; }
.docs-template-preview > header label { display: flex; align-items: center; gap: 8px; color: var(--dw-muted); font-size: 11px; }
.docs-template-preview select { width: auto; min-height: 34px; }
.docs-a4-stage { min-height: 0; overflow: hidden; border: 1px solid #343a42; border-radius: 6px; background: #4d5157; padding: 10px; }
.docs-a4-stage object { width: 100%; height: 100%; min-height: 620px; border: 0; background: #fff; }
.docs-a4-paper { box-sizing: border-box; width: min(100%, 620px); min-height: 100%; margin: auto; padding: 7% 6%; background: #fff; color: #111; box-shadow: 0 18px 44px #0008; font: 10px Arial, sans-serif; }
.docs-a4-paper h2 { text-align: center; font-size: 17px; }
.docs-paper-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0; }
.docs-paper-line { display: flex; gap: 22px; margin-bottom: 18px; }
.docs-a4-paper table { width: 100%; border-collapse: collapse; }
.docs-a4-paper th,
.docs-a4-paper td { padding: 7px 5px; border: 1px solid #111; text-align: left; }
.docs-paper-total { display: flex; justify-content: flex-end; gap: 30px; margin-top: 14px; font-size: 12px; }
.docs-paper-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 54px; }

.docs-zero,
.docs-empty { display: flex; min-height: 180px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: var(--dw-muted); text-align: center; }
.docs-zero i,
.docs-empty > i { width: 30px; }
.docs-zero strong,
.docs-empty strong { color: #e6e9ed; }
.docs-zero.compact { min-height: 110px; }

@media (max-width: 1280px) {
  .docs-command-bar { grid-template-columns: minmax(210px, 1fr) 150px 145px 132px 132px auto auto; }
  .docs-registry-layout { grid-template-columns: minmax(500px, 1fr) 310px; }
  .docs-fields-workspace { grid-template-columns: 200px minmax(0, 1fr); }
  .docs-fields-layout { grid-template-columns: minmax(390px, 1fr) 320px; }
  .docs-template-layout { grid-template-columns: 220px 320px minmax(360px, 1fr); }
  .docs-table-head,
  .docs-table-row { grid-template-columns: 1.15fr .72fr 1.15fr .8fr .9fr; }
  .docs-table-head > :nth-child(3),
  .docs-table-row > :nth-child(3) { display: none; }
  .docs-fields-columns,
  .docs-field-row { grid-template-columns: minmax(150px, 1.1fr) minmax(100px, .8fr) 82px 88px; gap: 8px; }
}

@media (max-width: 1120px) {
  .documents-workspace { min-height: auto; }
  .docs-hub-bar { align-items: stretch; flex-direction: column; }
  .docs-nav-actions { justify-content: flex-end; }
  .docs-command-bar { grid-template-columns: minmax(220px, 1fr) 1fr 1fr auto auto; }
  .docs-command-bar .docs-date-filter { display: none; }
  .docs-registry-layout,
  .docs-fields-layout { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .docs-fields-workspace { grid-template-columns: minmax(0, 1fr); }
  .docs-field-groups {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border-right: 0;
    border-bottom: 1px solid var(--dw-line);
  }
  .docs-field-groups > .docs-section-title { display: none; }
  .docs-field-groups-scroll {
    display: grid;
    width: 100%;
    min-width: 0;
    flex: 1;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    overflow: visible;
  }
  .docs-field-group { min-width: 0; min-height: 48px; }
  .docs-inspector,
  .docs-field-editor { min-height: 390px; border-top: 1px solid var(--dw-line); border-left: 0; }
  .docs-template-layout { grid-template-columns: 220px minmax(0, 1fr); overflow: visible; }
  .docs-template-preview { grid-column: 1 / -1; min-height: 650px; border-top: 1px solid var(--dw-line); border-left: 0; }
}

@media (max-width: 680px) {
  .documents-workspace { gap: 8px; }
  .docs-hub-tabs { width: 100%; }
  .docs-hub-tab { min-width: 0; min-height: 38px; flex: 1 1 0; justify-content: center; padding: 0 7px; }
  .docs-hub-tab span { font-size: 0; }
  .docs-hub-tab span::after { content: attr(data-short-label); font-size: 13px; }
  .docs-hub-tab i { display: none; }
  .docs-hub-tab b { display: none; }
  .docs-nav-actions { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .docs-nav-actions .button { min-width: 0; min-height: 40px; justify-content: center; padding-inline: 6px; font-size: 11px; white-space: normal; }
  .docs-command-bar { display: grid; grid-template-columns: 1fr 1fr auto; }
  .docs-search { grid-column: 1 / -1; }
  .docs-command-bar > .button { grid-column: 1 / -1; }
  .docs-kpi-grid { grid-template-columns: 1fr 1fr; }
  .docs-kpi-card { min-height: 68px; padding: 9px; }
  .docs-kpi-card > span { width: 31px; height: 31px; }
  .docs-kpi-card strong { font-size: 17px; }
  .docs-registry-workspace,
  .docs-fields-workspace,
  .docs-template-layout { overflow: visible; }
  .docs-table-head,
  .docs-fields-columns { display: none; }
  .docs-table-row { grid-template-columns: 1fr auto; gap: 5px; min-height: 74px; }
  .docs-table-row .docs-cell:nth-child(2),
  .docs-table-row .docs-cell:nth-child(3),
  .docs-table-row .docs-cell:nth-child(4) { display: none; }
  .docs-table-row .docs-cell:nth-child(1) { grid-column: 1; grid-row: 1; }
  .docs-table-row .docs-cell:nth-child(5) { display: block; grid-column: 2; grid-row: 1; }
  .docs-table-row .docs-cell:nth-child(6) { display: flex; grid-column: 1 / -1; grid-row: 2; font-size: 11px; }
  .docs-registry-main { min-height: 430px; }
  .docs-inspector,
  .docs-field-editor { min-height: 0; }
  .docs-field-groups { align-items: stretch; flex-direction: column; }
  .docs-field-groups-scroll { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-field-group { min-width: 0; }
  .docs-field-groups > .button { width: 100%; }
  .docs-fields-columns { display: none; }
  .docs-field-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px; min-height: 76px; }
  .docs-field-row > span:nth-child(1) { grid-column: 1 / -1; }
  .docs-field-row > span:nth-child(2) { color: #aab1ba; font-size: 11px; }
  .docs-field-row > span:nth-child(3) { display: none; }
  .docs-field-row > span:nth-child(4) { justify-self: end; }
  .docs-field-form,
  .docs-check-grid { grid-template-columns: 1fr; }
  .docs-template-layout { display: block; }
  .docs-template-list { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--dw-line); }
  .docs-template-preview { min-height: 560px; }
  .docs-a4-stage { min-height: 500px; }
  .docs-a4-paper { min-height: 620px; }
}

@media (min-width: 1121px) {
  .documents-workspace { height: calc(100dvh - 154px); min-height: 0; }
}
