.document-hub-view {
  --hub-blue: #1f5fd3;
  --hub-line: #d9e2ef;
  --hub-muted: #718096;
}

.document-hub-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.document-hub-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--hub-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.document-hub-actions {
  display: flex;
  gap: 8px;
}

.document-hub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.document-hub-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: #fff;
}

.document-hub-stat span {
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 650;
}

.document-hub-stat strong {
  color: #183153;
  font-size: 22px;
}

.document-hub-workspace {
  min-width: 0;
  padding: 14px;
}

.document-hub-list-panel {
  min-width: 0;
}

.document-hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.document-hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.document-hub-filters button {
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: #fff;
  color: #536781;
  font-size: 11px;
  font-weight: 700;
}

.document-hub-filters button.active {
  border-color: var(--hub-blue);
  background: #eaf2ff;
  color: #164fae;
}

.document-hub-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border: 1px dashed #9db5d6;
  border-radius: 10px;
  background: #f8fbff;
  color: #4f6480;
  cursor: pointer;
}

.document-hub-drop strong {
  color: #315d99;
  font-size: 12px;
}

.document-hub-drop span {
  color: var(--hub-muted);
  font-size: 11px;
}

.document-hub-drop.dragging {
  border-color: var(--hub-blue);
  background: #eaf2ff;
}

.document-hub-table-wrap {
  min-height: 330px;
  max-height: min(58vh, 680px);
  border-radius: 12px;
}

.document-hub-table {
  min-width: 1120px;
  table-layout: auto;
}

.document-hub-table th,
.document-hub-table td {
  min-width: 110px;
  vertical-align: middle;
}

.document-hub-table th:first-child,
.document-hub-table td:first-child {
  width: 52px;
  min-width: 52px;
  text-align: center;
}

.document-hub-table th:nth-child(2),
.document-hub-table td:nth-child(2) {
  width: 260px;
  min-width: 220px;
}

.document-hub-table th:nth-child(3),
.document-hub-table td:nth-child(3) {
  width: 320px;
  min-width: 280px;
}

.document-hub-row {
  cursor: pointer;
}

.document-hub-row:hover td {
  background: #f7faff;
}

.document-hub-row.active td {
  background: #eaf2ff;
  box-shadow: inset 0 1px 0 #bfd3f1, inset 0 -1px 0 #bfd3f1;
}

.document-hub-row:focus-visible {
  outline: 2px solid var(--hub-blue);
  outline-offset: -2px;
}

.document-hub-document-name {
  display: block;
  color: #1d3554;
  font-size: 12px;
}

.document-hub-table-id,
.document-hub-detail-id {
  color: #315f9e;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.document-hub-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #536781;
  font-size: 10px;
  font-weight: 750;
}

.document-hub-state.inbox {
  background: #fff4d6;
  color: #8b5d00;
}

.document-hub-state.assigned {
  background: #e3f7eb;
  color: #197044;
}

.document-hub-table-empty {
  height: 220px;
  color: var(--hub-muted);
  text-align: center;
}

.document-hub-details {
  min-height: 230px;
  margin-top: 12px;
  padding: 18px;
}

.document-hub-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.document-hub-detail-head h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.document-hub-detail-id button {
  margin-left: 6px;
  border: 0;
  background: transparent;
  color: var(--hub-blue);
  cursor: pointer;
  font-size: 10px;
}

.document-hub-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.document-hub-meta-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--hub-line);
  border-radius: 9px;
  background: #f9fbfe;
}

.document-hub-meta-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--hub-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.document-hub-meta-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.document-hub-placement {
  padding: 14px;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  background: #fff;
}

.document-hub-placement h3,
.document-hub-timeline h3 {
  margin: 0 0 9px;
  font-size: 13px;
}

.document-hub-placement-row {
  display: flex;
  gap: 8px;
}

.document-hub-placement select {
  flex: 1;
  min-width: 0;
}

.document-hub-placement p {
  margin: 8px 0 0;
  color: var(--hub-muted);
  font-size: 11px;
}

.document-hub-timeline {
  margin-top: 16px;
}

.document-hub-event {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.5fr) 170px;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hub-line);
  font-size: 11px;
}

.document-hub-event span {
  color: var(--hub-muted);
}

.document-hub-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--hub-muted);
  text-align: center;
}

.document-hub-empty span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #c8d7e9;
  border-radius: 12px;
  background: #eef4fd;
  color: #3e6da8;
  font-size: 11px;
  font-weight: 800;
}

.document-hub-empty h2 {
  margin: 8px 0 0;
  color: #304866;
  font-size: 15px;
}

.document-hub-empty p {
  margin: 3px 0 0;
  font-size: 11px;
}

.document-hub-view > .status-text {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .document-hub-hero,
  .document-hub-toolbar,
  .document-hub-placement-row {
    align-items: stretch;
    flex-direction: column;
  }

  .document-hub-actions button {
    width: 100%;
  }

  .document-hub-stats,
  .document-hub-meta-grid {
    grid-template-columns: 1fr;
  }

  .document-hub-drop {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-hub-event {
    grid-template-columns: 1fr;
  }
}
