/* Notes: the document grid and drag-and-drop upload. */

/* ---- Notes: document grid ---- */
/* Documents are a list of files, so they render as one — three columns of
   rows inside a single frame instead of 40 individual boxes. */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  margin-bottom: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
button.card.doc-card,
.doc-card {
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface);
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.doc-card:hover { background: var(--surface-2); }
.doc-card .doc-title {
  order: 1;
  flex: 1;
  min-width: 0;
  font-weight: 500;
  font-size: var(--fs-sm);
  line-height: var(--lh-tight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The type/size chips were louder than the filenames; make them a whisper. */
.doc-card .badge,
.doc-card .doc-meta {
  order: 2;
  flex-shrink: 0;
  background: none;
  color: var(--text-muted);
  padding: 0;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ---- Notes: drag-and-drop upload ---- */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.dropzone:hover,
.dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
.dropzone.busy {
  pointer-events: none;
  opacity: 0.7;
}
