/* ========== ДОКУМЕНТЫ: СОВРЕМЕННЫЙ СПИСОК ========== */
.documents-container { display: flex; gap: 40px; margin-top: 8px; flex-wrap: wrap; }
.doc-section { flex: 1; min-width: 340px; background: white; border-radius: 24px; box-shadow: 0 8px 30px rgba(0,0,0,0.05); padding: 20px 24px; }
body.dark-theme .doc-section { background: #1e293b; }
.doc-section-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 20px 0; padding-bottom: 12px; border-bottom: 2px solid #e2e8f0; color: #1e293b; }
body.dark-theme .doc-section-title { color: #e2e8f0; border-bottom-color: #334155; }

.doc-list { display: flex; flex-direction: column; gap: 8px; }

/* Элемент списка */
.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px 20px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  border: 1px solid transparent;
  cursor: default;
}
.doc-item:hover {
  background: #e0f2fe;
  border-color: #bae6fd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
body.dark-theme .doc-item { background: #0f172a; border-color: #334155; }
body.dark-theme .doc-item:hover { background: #1e3a5f; border-color: #2563eb; }

.doc-item-title {
  font-weight: 500;
  color: #1e293b;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 20px;
}
body.dark-theme .doc-item-title { color: #f1f5f9; }

.doc-item-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Кнопки действия */
.doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.doc-btn.generate {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}
.doc-btn.generate:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.doc-btn.print {
  background: #334155;
  color: white;
}
.doc-btn.print:hover {
  background: #1e293b;
  transform: translateY(-1px);
}
body.dark-theme .doc-btn.print {
  background: #475569;
}
body.dark-theme .doc-btn.print:hover {
  background: #64748b;
}

/* Адаптивность */
@media (max-width: 768px) {
  .documents-container {
    flex-direction: column;
    gap: 24px;
  }
  .doc-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .doc-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}