body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 24px;
}

h1 {
  margin-bottom: 16px;
}

h2 {
  margin-bottom: 12px;
}

#list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 900px;
}

ul#list > li.file-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

li.file-item {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.file-item {
  background: #f2f2f2;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;   
}

.file-title {
  flex: 1; 
  min-width: 0;
  font-weight: 600;
  font-size: 1.05em;
}

.file-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;          
  white-space: nowrap;
}

.file-actions a {
  text-decoration: none;
  color: #0066cc;
  font-size: 0.9em;
}

.file-actions a:hover {
  text-decoration: underline;
}

/* Optional: mobil – Aktionen unter den Titel */
@media (max-width: 600px) {
  .file-item {
    flex-direction: column;
    align-items: stretch;
  }

  .file-actions {
    align-items: flex-start;
  }
}

/* ONLYOFFICE Editor: Fullscreen */

#placeholder {
  height: 100%;
}

html,
body.editor-page {
  height: 100%;
}

body.editor-page {
  margin: 0;        
  padding: 0;
}

body.editor-page #placeholder {
  height: 100vh;    
}
